-
Notifications
You must be signed in to change notification settings - Fork 518
Is it possible to forward a web request to from ASP.Net Core to NodeServices ... #1209
Comments
It would be nice if NodeServices allow to use any express-middleware. I'm not sure if this is even possible but then it would be easier to create JavaScript applications with ASP.NET |
If you're doing server-side prerendering, you can use As for automatically passing through everything from the incoming request, we don't do that by default because it would be harmful for performance (incoming requests can be arbitrarily large, and we'd be serialising it and transferring it across processes). So it's up to you to pass through the info you need.
I'm not certain what this means exactly, as I haven't heard the term "web request aware" used elsewhere (and searching for it doesn't bring anything up). I'm guessing you mean something like
I did consider doing that right at the very start of the NodeServices project but I couldn't think of sufficiently compelling use cases. Also there are the perf implications I mentioned before. If you have examples of valuable things that you think a lot of developers would want to do and can't be easily achieved any other way, please let us know! |
... that would enable the use of Node packages that are web request aware... e.g. interrogate the browser request for accept-language headers?
I did find this in HttpNodeInstanceEntryPoint.ts:
const server = http.createServer((req, res) => {
Which indicates that NodeServices might be able to be web aware...?
The text was updated successfully, but these errors were encountered: