Bug 274102
Summary: | Implement Request & Response's bytes() method | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kevin Gibbons <bakkot> |
Component: | Platform | Assignee: | Anne van Kesteren <annevk> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | achristensen, annevk, cdumez, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari Technology Preview | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Kevin Gibbons
See https://github.com/whatwg/fetch/issues/1732.
Tests at https://github.com/web-platform-tests/wpt/pull/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:
- https://github.com/w3c/FileAPI/pull/197
- https://github.com/w3c/push-api/pull/369
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Anne van Kesteren
Pull request: https://github.com/WebKit/WebKit/pull/28530
Radar WebKit Bug Importer
<rdar://problem/128407577>
EWS
Committed 279036@main (a534f04d1a2e): <https://commits.webkit.org/279036@main>
Reviewed commits have been landed. Closing PR #28530 and removing active labels.