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

Method json

lib/api/readable.js:186–188  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

184 * @returns {Promise<unknown>}
185 */
186 json () {
187 return consume(this, 'json')
188 }
189
190 /**
191 * Consumes and returns the body as a Blob

Callers

nothing calls this directly

Calls 1

consumeFunction · 0.85

Tested by

no test coverage detected