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

Function buildHeaders

github-actions/browserstack/set-browserstack-env.js:9110–9119  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

9108 }
9109 };
9110 function buildHeaders(headers) {
9111 if (Array.isArray(headers)) {
9112 const headersPair = {};
9113 for (let i = 0; i < headers.length; i += 2) {
9114 headersPair[headers[i]] = headers[i + 1];
9115 }
9116 return headersPair;
9117 }
9118 return headers;
9119 }
9120 function throwIfProxyAuthIsSent(headers) {
9121 const existProxyAuth = headers && Object.keys(headers).find((key) => key.toLowerCase() === "proxy-authorization");
9122 if (existProxyAuth) {

Callers 1

dispatchMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected