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

Method cache

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

Source from the content-addressed store, hash-verified

13496 const mayBeNormalized = normalizedMethodRecords[method];
13497 if (mayBeNormalized !== void 0) {
13498 request.method = mayBeNormalized;
13499 } else {
13500 if (!isValidHTTPToken(method)) {
13501 throw new TypeError(`'${method}' is not a valid HTTP method.`);
13502 }
13503 const upperCase = method.toUpperCase();
13504 if (forbiddenMethodsSet.has(upperCase)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected