Skip to content

Implement Request/Response .bytes() method #23790

@bakkot

Description

@bakkot

See whatwg/fetch#1732.

Tests at web-platform-tests/wpt#46198.

The above spec PR adds a bytes() method to get a Uint8Array to Body, instead of requiring users to get an ArrayBuffer with arrayBuffer() and then wrap it.

There are also PRs to do the same for Blob and PushMessageData, which copy relevant parts of the Body interface:

Metadata

Metadata

Assignees

Labels

webrelated to Web APIs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions