undici icon indicating copy to clipboard operation
undici copied to clipboard

Implement Request/Response `.bytes()` method

Open bakkot opened this issue 9 months ago • 0 comments

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.

bakkot avatar May 13 '24 18:05 bakkot