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

Function processBody

github-actions/browserstack/set-browserstack-env.js:14167–14174  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

14165 response = yield (() => __async(this, null, function* () {
14166 const currentURL = requestCurrentURL(request);
14167 if (
14168 // - request’s current URL’s origin is same origin with request’s origin,
14169 // and request’s response tainting is "basic"
14170 sameOrigin(currentURL, request.url) && request.responseTainting === "basic" || // request’s current URL’s scheme is "data"
14171 currentURL.protocol === "data:" || // - request’s mode is "navigate" or "websocket"
14172 (request.mode === "navigate" || request.mode === "websocket")
14173 ) {
14174 request.responseTainting = "basic";
14175 return yield schemeFetch(fetchParams);
14176 }
14177 if (request.mode === "same-origin") {

Callers

nothing calls this directly

Calls 4

bytesMatchFunction · 0.70
processBodyErrorFunction · 0.70
safelyExtractBodyFunction · 0.70
fetchFinaleFunction · 0.70

Tested by

no test coverage detected