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

Method append

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

Source from the content-addressed store, hash-verified

12456 return headers;
12457 }
12458 // https://fetch.spec.whatwg.org/#convert-header-names-to-a-sorted-lowercase-set
12459 toSortedArray() {
12460 const size = this[kHeadersMap].size;
12461 const array = new Array(size);
12462 if (size <= 32) {
12463 if (size === 0) {
12464 return array;
12465 }
12466 const iterator = this[kHeadersMap][Symbol.iterator]();
12467 const firstValue = iterator.next().value;
12468 array[0] = [firstValue[0], firstValue[1].value];

Callers 12

formDataFunction · 0.45
appendHeaderFunction · 0.45
redirectMethod · 0.45
initializeResponseFunction · 0.45
constructorMethod · 0.45
fetchingFunction · 0.45
httpNetworkOrCacheFetchFunction · 0.45
onHeadersFunction · 0.45
onUpgradeFunction · 0.45
setCookieFunction · 0.45

Calls 1

appendHeaderFunction · 0.70

Tested by

no test coverage detected