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

Method delete

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

Source from the content-addressed store, hash-verified

12465 * @see https://fetch.spec.whatwg.org/#header-list-contains
12466 * @param {string} name
12467 * @param {boolean} isLowerCase
12468 */
12469 contains(name, isLowerCase) {
12470 return this[kHeadersMap].has(isLowerCase ? name : name.toLowerCase());
12471 }
12472 clear() {
12473 this[kHeadersMap].clear();
12474 this[kHeadersSortedMap] = null;
12475 this.cookies = null;
12476 }
12477 /**
12478 * @see https://fetch.spec.whatwg.org/#concept-header-list-append
12479 * @param {string} name
12480 * @param {string} value
12481 * @param {boolean} isLowerCase
12482 */
12483 append(name, value, isLowerCase) {
12484 var _a;
12485 this[kHeadersSortedMap] = null;
12486 const lowercaseName = isLowerCase ? name : name.toLowerCase();
12487 const exists2 = this[kHeadersMap].get(lowercaseName);
12488 if (exists2) {
12489 const delimiter2 = lowercaseName === "cookie" ? "; " : ", ";

Callers

nothing calls this directly

Calls 3

__privateGetFunction · 0.70
containsMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected