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

Function bytes

lib/web/fetch/body.js:388–395  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

386 },
387
388 bytes () {
389 // The bytes() method steps are to return the result of running consume body
390 // with this and the following step given a byte sequence bytes: return the
391 // result of creating a Uint8Array from bytes in this’s relevant realm.
392 return consumeBody(this, (bytes) => {
393 return new Uint8Array(bytes)
394 }, instance, getInternalState)
395 },
396
397 textStream () {
398 const this_ = getInternalState(this)

Callers

nothing calls this directly

Calls 1

consumeBodyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…