unjs / unenv

🕊️ Convert javaScript code to be runtime agnostic
MIT License
443 stars 22 forks source link

feat(node/stream): support writing multiple chunks #75

Closed pi0 closed 1 year ago

pi0 commented 1 year ago

resolves #https://github.com/unjs/nitro/issues/950

Support writing multiple chunks using res.write.

Note: This is a less efficient method of concatenating buffers each time but is compatible with the current direct fetch implementation that expects a (merged) body. Later improving stream support