Skip to content

BYOB support for Fetch #194

@nidhijaju

Description

@nidhijaju

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions