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

Function finalizeResponse

github-actions/browserstack/set-browserstack-env.js:14272–14277  ·  view source on GitHub ↗
(fetchParams, response)

Source from the content-addressed store, hash-verified

14270 const serializedFullLength = isomorphicEncode(`${fullLength}`);
14271 const type = blob.type;
14272 if (!request.headersList.contains("range", true)) {
14273 const bodyWithType = extractBody(blob);
14274 response.statusText = "OK";
14275 response.body = bodyWithType[0];
14276 response.headersList.set("content-length", serializedFullLength, true);
14277 response.headersList.set("content-type", type, true);
14278 } else {
14279 response.rangeRequested = true;
14280 const rangeHeader = request.headersList.get("range", true);

Callers 1

httpNetworkFetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected