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

Function fromInnerResponse

github-actions/browserstack/set-browserstack-env.js:12976–12987  ·  view source on GitHub ↗
(innerResponse, guard)

Source from the content-addressed store, hash-verified

12974 if (bodyUnusable(this)) {
12975 throw webidl.errors.exception({
12976 header: "Response.clone",
12977 message: "Body has already been consumed."
12978 });
12979 }
12980 const clonedResponse = cloneResponse(this[kState]);
12981 if (hasFinalizationRegistry && ((_a = this[kState].body) == null ? void 0 : _a.stream)) {
12982 streamRegistry.register(this, new WeakRef(this[kState].body.stream));
12983 }
12984 return fromInnerResponse(clonedResponse, getHeadersGuard(this[kHeaders]));
12985 }
12986 [nodeUtil.inspect.custom](depth, options) {
12987 var _a;
12988 if (options.depth === null) {
12989 options.depth = 2;
12990 }

Callers 6

errorMethod · 0.70
jsonMethod · 0.70
redirectMethod · 0.70
cloneMethod · 0.70
processResponseFunction · 0.70
""Function · 0.70

Calls 1

registerMethod · 0.45

Tested by

no test coverage detected