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

Function isDisturbed

deps/undici/src/lib/core/util.js:608–611  ·  view source on GitHub ↗

* A body is disturbed if it has been read from and it cannot be re-used without * losing state or data. * @param {import('node:stream').Readable} body * @returns {boolean}

(body)

Source from the content-addressed store, hash-verified

606 * @returns {boolean}
607 */
608function isDisturbed (body) {
609 // TODO (fix): Why is body[kBodyUsed] needed?
610 return !!(body && (stream.isDisturbed(body) || body[kBodyUsed]))
611}
612
613/**
614 * @typedef {object} SocketInfo

Callers 4

putMethod · 0.50
body.jsFile · 0.50
onResponseErrorMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected