Re: [whatwg/fetch] idea: Accept a iterator as a body (#809)

Not the only one that thought of it.

> WHATWG streams
> - We won’t be able to get rid of the existing node streams with the current ecosystem depending heavily on them (readable-stream being the 4th most downloaded npm package)
We need interop
>   - Interop idea - async iterators. Can write function with the exact same code that reads from WHATWG and Node readable streams. 
>   - Interop idea - pipeline function. Make sure you can use pipeline(node_stream, whatwg_stream). Build the logic of how this works into the runtime.
>   - Interop idea - ask the spec to add a `getAsyncIterator` method and not implement whatwg streams.

ref:
(Implement window.fetch into core) https://github.com/nodejs/node/issues/19393

https://docs.google.com/document/d/1tn_-0S_FG_sla81wFohi8Sc8YI5PJiTopEzSA7UaLKM/edit


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/809#issuecomment-519853407

Received on Friday, 9 August 2019 09:37:06 UTC