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

Function isUnusable

deps/undici/src/lib/api/readable.js:349–351  ·  view source on GitHub ↗

* @see https://fetch.spec.whatwg.org/#body-unusable * @param {BodyReadable} bodyReadable * @returns {boolean}

(bodyReadable)

Source from the content-addressed store, hash-verified

347 * @returns {boolean}
348 */
349function isUnusable (bodyReadable) {
350 return util.isDisturbed(bodyReadable) || isLocked(bodyReadable)
351}
352
353/**
354 * @typedef {'text' | 'json' | 'blob' | 'bytes' | 'arrayBuffer'} ConsumeType

Callers 1

consumeFunction · 0.70

Calls 1

isLockedFunction · 0.70

Tested by

no test coverage detected