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

Function cloneBody

deps/undici/undici.js:6839–6847  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

6837 }
6838 __name(safelyExtractBody, "safelyExtractBody");
6839 function cloneBody(body) {
6840 const { 0: out1, 1: out2 } = body.stream.tee();
6841 body.stream = out1;
6842 return {
6843 stream: out2,
6844 length: body.length,
6845 source: body.source
6846 };
6847 }
6848 __name(cloneBody, "cloneBody");
6849 function bodyMixinMethods(instance, getInternalState) {
6850 const methods = {

Callers 2

cloneResponseFunction · 0.70
cloneRequestFunction · 0.70

Calls 1

teeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…