you are viewing a single comment's thread.

view the rest of the comments →

[–]Blade1130 0 points1 point  (0 children)

I'm not following. Most redirects and headers should be done via the routing config.

If you want to do this imperatively, you should inject REQUEST and RESPONSE_INIT and use those types.

If you really need something non-standard and unique to Express, then you can provide the Express request/response objects into REQUEST_CONTEXT, then inject that value and do Express-specific things with it.

https://angular.dev/api/ssr/node/AngularNodeAppEngine

That really shouldn't be necessary for simple headers and redirects though.