MCPcopy Create free account
hub / github.com/nodejs/node / bodyUnusable

Function bodyUnusable

deps/undici/undici.js:6962–6965  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

6960 }
6961 __name(consumeBody, "consumeBody");
6962 function bodyUnusable(object) {
6963 const body = object.body;
6964 return body != null && (body.stream.locked || util.isDisturbed(body.stream));
6965 }
6966 __name(bodyUnusable, "bodyUnusable");
6967 function bodyMimeType(requestOrResponse) {
6968 const headers = requestOrResponse.headersList;

Callers 5

textStreamFunction · 0.70
consumeBodyFunction · 0.70
cloneMethod · 0.70
constructorMethod · 0.70
cloneMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected