MCPcopy Create free account
hub / github.com/angular/dev-infra / safelyExtractBody

Function safelyExtractBody

github-actions/browserstack/set-browserstack-env.js:5770–5776  ·  view source on GitHub ↗
(object, keepalive = false)

Source from the content-addressed store, hash-verified

5768 yield iterator.return();
5769 });
5770 },
5771 type: "bytes"
5772 });
5773 }
5774 const body = { stream, source, length };
5775 return [body, type];
5776 }
5777 function safelyExtractBody(object, keepalive = false) {
5778 if (object instanceof ReadableStream) {
5779 assert(!util.isDisturbed(object), "The body has already been consumed.");

Callers 3

processBodyFunction · 0.70
schemeFetchFunction · 0.70
httpRedirectFetchFunction · 0.70

Calls 1

extractBodyFunction · 0.70

Tested by

no test coverage detected