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

Function fromInnerResponse

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

Source from the content-addressed store, hash-verified

12974 return makeFilteredResponse(response, {
12975 type: "opaqueredirect",
12976 status: 0,
12977 statusText: "",
12978 headersList: [],
12979 body: null
12980 });
12981 } else {
12982 assert(false);
12983 }
12984 }
12985 function makeAppropriateNetworkError(fetchParams, err = null) {
12986 assert(isCancelled(fetchParams));
12987 return isAborted(fetchParams) ? makeNetworkError(Object.assign(new DOMException("The operation was aborted.", "AbortError"), { cause: err })) : makeNetworkError(Object.assign(new DOMException("Request was cancelled."), { cause: err }));
12988 }
12989 function initializeResponse(response, init, body) {
12990 if (init.status !== null && (init.status < 200 || init.status > 599)) {

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