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

Method text

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.85

Tested by

no test coverage detected