-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
enhancementNew feature or requestNew feature or requestweb-apiSomething that relates to a standard Web APISomething that relates to a standard Web API
Description
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:
- Add bytes() method to Blob for reading bytes into a Uint8Array w3c/FileAPI#197
- Add bytes() method for reading bytes into a Uint8Array w3c/push-api#369
I don't think Bun has PushMessageData but it does have Blob.
yus-ham
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestweb-apiSomething that relates to a standard Web APISomething that relates to a standard Web API