Skip to content
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

BYOB support for Fetch #194

Closed
nidhijaju opened this issue May 31, 2023 · 1 comment
Closed

BYOB support for Fetch #194

nidhijaju opened this issue May 31, 2023 · 1 comment

Comments

@nidhijaju
Copy link

nidhijaju commented May 31, 2023

WebKittens

@annevk

Title of the spec

BYOB support for Fetch

URL to the spec

https://fetch.spec.whatwg.org/#http-network-fetch

URL to the spec's repository

https://github.com/whatwg/fetch

Issue Tracker URL

No response

Explainer URL

No response

TAG Design Review URL

No response

Mozilla standards-positions issue URL

No response

WebKit Bugzilla URL

No response

Radar URL

No response

Description

The proposal is to make Response.body be a readable byte stream instead of a "default" readable stream. This enables it to be used with bring-your-own-buffer (BYOB) readers, reducing garbage collection overhead and copies. The spec PR for this was landed at whatwg/fetch#1593.

Firefox has already shipped this in 2022 (see whatwg/fetch#267 (comment)), and implementation is in progress for Chrome. The corresponding ChromeStatus entry for this feature is at https://chromestatus.com/feature/5192003450568704.

@annevk
Copy link
Contributor

annevk commented Jun 5, 2023

I discussed this with colleagues and this looks good to us. I suggest we label this as "position: support" one week from now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants