MCPcopy Create free account
hub / github.com/nodejs/node / bytes

Method bytes

deps/undici/undici.js:17195–17197  ·  view source on GitHub ↗

* Consumes and returns the body as an Uint8Array. * * @see https://fetch.spec.whatwg.org/#dom-body-bytes * @returns {Promise }

()

Source from the content-addressed store, hash-verified

17193 * @returns {Promise<Uint8Array>}
17194 */
17195 bytes() {
17196 return consume(this, "bytes");
17197 }
17198 /**
17199 * Consumes and returns the body as an ArrayBuffer.
17200 *

Callers

nothing calls this directly

Calls 1

consumeFunction · 0.70

Tested by

no test coverage detected