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

Method set

github-actions/browserstack/set-browserstack-env.js:12518–12542  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

12516 * @see https://fetch.spec.whatwg.org/#concept-header-list-delete
12517 * @param {string} name
12518 * @param {boolean} isLowerCase
12519 */
12520 delete(name, isLowerCase) {
12521 this[kHeadersSortedMap] = null;
12522 if (!isLowerCase)
12523 name = name.toLowerCase();
12524 if (name === "set-cookie") {
12525 this.cookies = null;
12526 }
12527 this[kHeadersMap].delete(name);
12528 }
12529 /**
12530 * @see https://fetch.spec.whatwg.org/#concept-header-list-get
12531 * @param {string} name
12532 * @param {boolean} isLowerCase
12533 * @returns {string | null}
12534 */
12535 get(name, isLowerCase) {
12536 var _a, _b;
12537 return (_b = (_a = this[kHeadersMap].get(isLowerCase ? name : name.toLowerCase())) == null ? void 0 : _a.value) != null ? _b : null;
12538 }
12539 *[Symbol.iterator]() {
12540 for (const { 0: name, 1: { value } } of this[kHeadersMap]) {
12541 yield [name, value];
12542 }
12543 }
12544 get entries() {
12545 const headers = {};

Callers 15

__privateAddFunction · 0.45
__privateSetFunction · 0.45
setMethod · 0.45
setMethod · 0.45
buildConnectorFunction · 0.45
parseMIMETypeFunction · 0.45
appendFetchMetadataFunction · 0.45
extractMimeTypeFunction · 0.45
executeMethod · 0.45
[kDispatch]Method · 0.45
chunksConcatFunction · 0.45
[kMockAgentSet]Method · 0.45

Calls 3

headerValueNormalizeFunction · 0.70
isValidHeaderValueFunction · 0.70
__privateGetFunction · 0.70

Tested by

no test coverage detected