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

Method text

deps/undici/undici.js:17168–17170  ·  view source on GitHub ↗

* Consumes and returns the body as a string. * * @see https://fetch.spec.whatwg.org/#dom-body-text * @returns {Promise }

()

Source from the content-addressed store, hash-verified

17166 * @returns {Promise<string>}
17167 */
17168 text() {
17169 return consume(this, "text");
17170 }
17171 /**
17172 * Consumes and returns the body as a JavaScript Object.
17173 *

Callers

nothing calls this directly

Calls 1

consumeFunction · 0.70

Tested by

no test coverage detected