Skip to content

Why does undici use ReadableStream from stream/web if it is a Node library? #3409

Answered by Ethan-Arrowood
dlarocque asked this question in Q&A
Discussion options

You must be logged in to vote

Fetch is a browser API and Undici implements it as close to specification as possible (meaning it uses Web ReadableStream).

Other methods in Undici use the Node.js Stream Readable.

Node.js has support for many Web Apis (specified by WHATWG or W3C)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dlarocque
Comment options

Answer selected by mcollina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants