(p, request, responseObject, error)
| 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({ |
no test coverage detected