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

Method clone

github-actions/saucelabs/set-saucelabs-env.js:12793–12807  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12791 }
12792 // Returns response’s URL, if it has one; otherwise the empty string.
12793 get url() {
12794 var _a;
12795 webidl.brandCheck(this, _Response);
12796 const urlList = this[kState].urlList;
12797 const url = (_a = urlList[urlList.length - 1]) != null ? _a : null;
12798 if (url === null) {
12799 return "";
12800 }
12801 return URLSerializer(url, true);
12802 }
12803 // Returns whether response was obtained through a redirect.
12804 get redirected() {
12805 webidl.brandCheck(this, _Response);
12806 return this[kState].urlList.length > 1;
12807 }
12808 // Returns response’s status.
12809 get status() {
12810 webidl.brandCheck(this, _Response);

Callers

nothing calls this directly

Calls 4

bodyUnusableFunction · 0.70
cloneResponseFunction · 0.70
fromInnerResponseFunction · 0.70
registerMethod · 0.45

Tested by

no test coverage detected