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

Method body

deps/undici/undici.js:17232–17241  ·  view source on GitHub ↗

* @see https://fetch.spec.whatwg.org/#dom-body-body * @readonly * @returns {ReadableStream}

()

Source from the content-addressed store, hash-verified

17230 * @returns {ReadableStream}
17231 */
17232 get body() {
17233 if (!this[kBody]) {
17234 this[kBody] = ReadableStreamFrom(this);
17235 if (this[kConsume]) {
17236 this[kBody].getReader();
17237 assert(this[kBody].locked);
17238 }
17239 }
17240 return this[kBody];
17241 }
17242 /**
17243 * Dumps the response body by reading `limit` number of bytes.
17244 * @param {object} opts

Callers 1

Calls 3

getReaderMethod · 0.80
ReadableStreamFromFunction · 0.70
assertFunction · 0.50

Tested by

no test coverage detected