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

Method get

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

Source from the content-addressed store, hash-verified

12486 const lowercaseName = isLowerCase ? name : name.toLowerCase();
12487 const exists2 = this[kHeadersMap].get(lowercaseName);
12488 if (exists2) {
12489 const delimiter2 = lowercaseName === "cookie" ? "; " : ", ";
12490 this[kHeadersMap].set(lowercaseName, {
12491 name: exists2.name,
12492 value: `${exists2.value}${delimiter2}${value}`
12493 });
12494 } else {
12495 this[kHeadersMap].set(lowercaseName, { name, value });
12496 }
12497 if (lowercaseName === "set-cookie") {
12498 ((_a = this.cookies) != null ? _a : this.cookies = []).push(value);
12499 }
12500 }
12501 /**
12502 * @see https://fetch.spec.whatwg.org/#concept-header-list-set
12503 * @param {string} name
12504 * @param {string} value

Callers

nothing calls this directly

Calls 2

__privateGetFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected