MCPcopy Index your code
hub / github.com/nodejs/node / text

Method text

deps/undici/src/lib/api/readable.js:175–177  ·  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

173 * @returns {Promise<string>}
174 */
175 text () {
176 return consume(this, 'text')
177 }
178
179 /**
180 * Consumes and returns the body as a JavaScript Object.

Callers

nothing calls this directly

Calls 1

consumeFunction · 0.70

Tested by

no test coverage detected