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

Function safeUrl

github-actions/browserstack/set-browserstack-env.js:10951–10962  ·  view source on GitHub ↗
(path4)

Source from the content-addressed store, hash-verified

10949 })
10950 );
10951 }
10952 function getHeaderByName(headers, key) {
10953 if (Array.isArray(headers)) {
10954 for (let i = 0; i < headers.length; i += 2) {
10955 if (headers[i].toLocaleLowerCase() === key.toLocaleLowerCase()) {
10956 return headers[i + 1];
10957 }
10958 }
10959 return void 0;
10960 } else if (typeof headers.get === "function") {
10961 return headers.get(key);
10962 } else {
10963 return lowerCaseEntries(headers)[key.toLocaleLowerCase()];
10964 }
10965 }

Callers 1

getMockDispatchFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected