nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Preset for Azure Functions V4 with HTTP Streaming

Open supersoniko opened this issue 1 year ago • 2 comments

Describe the feature

The current azure-functions preset still uses the old Azure function runtime programming model which does not support HTTP Streaming. In the Azure Function V4 runtime support for HTTP Streaming is currently in preview: https://techcommunity.microsoft.com/t5/apps-on-azure-blog/azure-functions-support-for-http-streams-in-node-js-is-now-in/ba-p/4066575

With HTTP Streaming, we can use Azure Functions as a runtime for applications like Solid Start, which require HTTP Streaming to fully function.

Additional information

  • [ ] Would you be willing to help implement this feature?

supersoniko avatar May 28 '24 19:05 supersoniko

Opened a WIP pull request https://github.com/unjs/nitro/pull/2477

supersoniko avatar May 28 '24 19:05 supersoniko

Other than patching the Azure functions runtime preset here https://github.com/nitrojs/nitro/blob/v2/src/presets/azure/runtime/azure-functions.ts#L28 to load the body to memory before returning it, is there anything else I can do?

angelovdev avatar Dec 01 '25 15:12 angelovdev