MCPcopy
hub / github.com/nodejs/undici / bytes

Method bytes

lib/api/readable.js:206–208  ·  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

204 * @returns {Promise<Uint8Array>}
205 */
206 bytes () {
207 return consume(this, 'bytes')
208 }
209
210 /**
211 * Consumes and returns the body as an ArrayBuffer.

Callers

nothing calls this directly

Calls 1

consumeFunction · 0.85

Tested by

no test coverage detected