Stream support in res.send() #6687
Pinned
bjohansebas
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think we should support sending streams as part of the res.send() API, allowing us to do the following:
And along with that, support web streams so that it’s quite easy to use Blob, Response, and ReadableStream
Could this be a breaking change? How much would it affect the middleware we maintain, for example, compression, which transforms the response? These are things that would need to be investigated, but I fully support this integration. Fastify has it, and so does Koa.
Beta Was this translation helpful? Give feedback.
All reactions