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

Function abortFetch

github-actions/saucelabs/set-saucelabs-env.js:13989–14014  ·  view source on GitHub ↗
(p, request, responseObject, error)

Source from the content-addressed store, hash-verified

13987 p.resolve(responseObject.deref());
13988 p = null;
13989 };
13990 controller = fetching({
13991 request,
13992 processResponseEndOfBody: handleFetchDone,
13993 processResponse,
13994 dispatcher: requestObject[kDispatcher]
13995 // undici
13996 });
13997 return p.promise;
13998 }
13999 function finalizeAndReportTiming(response, initiatorType = "other") {
14000 var _a;
14001 if (response.type === "error" && response.aborted) {
14002 return;
14003 }
14004 if (!((_a = response.urlList) == null ? void 0 : _a.length)) {
14005 return;
14006 }
14007 const originalURL = response.urlList[0];
14008 let timingInfo = response.timingInfo;
14009 let cacheState = response.cacheState;
14010 if (!urlIsHttpHttpsScheme(originalURL)) {
14011 return;
14012 }
14013 if (timingInfo === null) {
14014 return;
14015 }
14016 if (!response.timingAllowPassed) {
14017 timingInfo = createOpaqueTimingInfo({

Callers 2

fetchFunction · 0.70
processResponseFunction · 0.70

Calls 1

isReadableFunction · 0.70

Tested by

no test coverage detected