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

Function cloneResponse

github-actions/saucelabs/set-saucelabs-env.js:12850–12862  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

12848 streamRegistry.register(this, new WeakRef(this[kState].body.stream));
12849 }
12850 return fromInnerResponse(clonedResponse, getHeadersGuard(this[kHeaders]));
12851 }
12852 [nodeUtil.inspect.custom](depth, options) {
12853 var _a;
12854 if (options.depth === null) {
12855 options.depth = 2;
12856 }
12857 (_a = options.colors) != null ? _a : options.colors = true;
12858 const properties = {
12859 status: this.status,
12860 statusText: this.statusText,
12861 headers: this.headers,
12862 body: this.body,
12863 bodyUsed: this.bodyUsed,
12864 ok: this.ok,
12865 redirected: this.redirected,

Callers 2

cloneMethod · 0.70
putMethod · 0.70

Calls 5

filterResponseFunction · 0.70
makeResponseFunction · 0.70
__spreadPropsFunction · 0.70
__spreadValuesFunction · 0.70
cloneBodyFunction · 0.70

Tested by

no test coverage detected