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

Function cloneResponse

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

Source from the content-addressed store, hash-verified

12848 }
12849 get body() {
12850 webidl.brandCheck(this, _Response);
12851 return this[kState].body ? this[kState].body.stream : null;
12852 }
12853 get bodyUsed() {
12854 webidl.brandCheck(this, _Response);
12855 return !!this[kState].body && util.isDisturbed(this[kState].body.stream);
12856 }
12857 // Returns a clone of response.
12858 clone() {
12859 var _a;
12860 webidl.brandCheck(this, _Response);
12861 if (bodyUnusable(this)) {
12862 throw webidl.errors.exception({
12863 header: "Response.clone",
12864 message: "Body has already been consumed."
12865 });

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