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

Function matchKey

github-actions/browserstack/set-browserstack-env.js:10963–10969  ·  view source on GitHub ↗
(mockDispatch2, { path: path4, method, body, headers })

Source from the content-addressed store, hash-verified

10961 return headers.get(key);
10962 } else {
10963 return lowerCaseEntries(headers)[key.toLocaleLowerCase()];
10964 }
10965 }
10966 function buildHeadersFromArray(headers) {
10967 const clone = headers.slice();
10968 const entries = [];
10969 for (let index = 0; index < clone.length; index += 2) {
10970 entries.push([clone[index], clone[index + 1]]);
10971 }
10972 return Object.fromEntries(entries);

Callers 1

deleteMockDispatchFunction · 0.70

Calls 2

matchValueFunction · 0.70
matchHeadersFunction · 0.70

Tested by

no test coverage detected