Implement Request/Response `.bytes()` method
bakkot opened this issue · 0 comments
bakkot commented
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.