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

Function onComplete

github-actions/browserstack/set-browserstack-env.js:14852–14861  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14850 return;
14851 }
14852 let location = "";
14853 const headersList = new HeadersList();
14854 for (let i = 0; i < rawHeaders.length; i += 2) {
14855 headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true);
14856 }
14857 location = headersList.get("location", true);
14858 this.body = new Readable({ read: resume });
14859 const decoders = [];
14860 const willFollow = location && request.redirect === "follow" && redirectStatusSet.has(status);
14861 if (request.method !== "HEAD" && request.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) {
14862 const contentEncoding = headersList.get("content-encoding", true);
14863 const codings = contentEncoding ? contentEncoding.toLowerCase().split(",") : [];
14864 const maxContentEncodings = 5;

Callers

nothing calls this directly

Calls 2

offMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected