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 * @see https://fetch.spec.whatwg.org/#concept-header-list-set
12503 * @param {string} name
12504 * @param {string} value
12505 * @param {boolean} isLowerCase
12506 */
12507 set(name, value, isLowerCase) {
12508 this[kHeadersSortedMap] = null;
12509 const lowercaseName = isLowerCase ? name : name.toLowerCase();
12510 if (lowercaseName === "set-cookie") {
12511 this.cookies = [value];
12512 }
12513 this[kHeadersMap].set(lowercaseName, { name, value });
12514 }
12515 /**
12516 * @see https://fetch.spec.whatwg.org/#concept-header-list-delete
12517 * @param {string} name
12518 * @param {boolean} isLowerCase
12519 */

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