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

Method has

github-actions/browserstack/set-browserstack-env.js:12503–12516  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

12501 }
12502 // https://fetch.spec.whatwg.org/#dom-headers-has
12503 has(name) {
12504 webidl.brandCheck(this, _Headers);
12505 webidl.argumentLengthCheck(arguments, 1, "Headers.has");
12506 const prefix = "Headers.has";
12507 name = webidl.converters.ByteString(name, prefix, "name");
12508 if (!isValidHeaderName(name)) {
12509 throw webidl.errors.invalidArgument({
12510 prefix,
12511 value: name,
12512 type: "header name"
12513 });
12514 }
12515 return __privateGet(this, _headersList).contains(name, false);
12516 }
12517 // https://fetch.spec.whatwg.org/#dom-headers-set
12518 set(name, value) {
12519 webidl.brandCheck(this, _Headers);

Callers 15

__accessCheckFunction · 0.45
__privateInFunction · 0.45
__privateAddFunction · 0.45
parseMIMETypeFunction · 0.45
responseLocationURLFunction · 0.45
requestBadPortFunction · 0.45
extractMimeTypeFunction · 0.45
containsMethod · 0.45
redirectMethod · 0.45
constructorMethod · 0.45
fetchingFunction · 0.45

Calls 2

__privateGetFunction · 0.70
containsMethod · 0.45

Tested by

no test coverage detected