MCPcopy Index your code
hub / github.com/angular/angular / addHeaderEntry

Method addHeaderEntry

packages/common/http/src/headers.ts:247–255  ·  view source on GitHub ↗
(name: string, value: string)

Source from the content-addressed store, hash-verified

245 }
246
247 private addHeaderEntry(name: string, value: string) {
248 const key = name.toLowerCase();
249 this.maybeSetNormalizedName(name, key);
250 if (this.headers.has(key)) {
251 this.headers.get(key)!.push(value);
252 } else {
253 this.headers.set(key, [value]);
254 }
255 }
256
257 private setHeaderEntries(name: string, values: any) {
258 const headerValues = (Array.isArray(values) ? values : [values]).map((value) =>

Callers 1

constructorMethod · 0.95

Calls 5

hasMethod · 0.65
getMethod · 0.65
setMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected