-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
position: supporttopic: fetchRelates to the Fetch APIRelates to the Fetch APIvenue: WHATWG Fetch Workstream
Description
WebKittens
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.
Metadata
Metadata
Assignees
Labels
position: supporttopic: fetchRelates to the Fetch APIRelates to the Fetch APIvenue: WHATWG Fetch Workstream