-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch request body as ReadableStream #622
Comments
Thanks for this! 👍 to these changes, the goal is to match the spec so a contribution for this would be very welcome 😁 However, just so you are aware ... I recently implemented a https://caniuse.com/mdn-api_request_request_readablestream_request_body |
I have just realized that also, while playing around with possible new version of the facade 😞. I guess it still makes sense to have the upgraded facade in case someone might find some use for natively available streaming implementation and to prepare for eventual browser support for I will start working on the PR then. |
Thanks! The enhancements for |
Good news, it seems that Chrome will finally be supporting this: Hopefully other browsers will follow suit. |
According to the specs, Fetch should be able to handle
ReadableStream
as request body. Implementing this would likely result in some changes toReadableStream
andReadableStreamController
facades -ReadableStream
needs a constructor that implements theunderlyingSource
, which allows interaction withReadableStreamController
, andReadableStreamController
should not have its own constructor, as it is constructed byReadableStream
during its construction.If implementing this would be approved, I could give it a shot.
References:
The text was updated successfully, but these errors were encountered: