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

Method setHeaderEntries

packages/common/http/src/headers.ts:257–264  ·  view source on GitHub ↗
(name: string, values: any)

Source from the content-addressed store, hash-verified

255 }
256
257 private setHeaderEntries(name: string, values: any) {
258 const headerValues = (Array.isArray(values) ? values : [values]).map((value) =>
259 value.toString(),
260 );
261 const key = name.toLowerCase();
262 this.headers.set(key, headerValues);
263 this.maybeSetNormalizedName(name, key);
264 }
265
266 /**
267 * @internal

Callers 1

constructorMethod · 0.95

Calls 5

mapMethod · 0.80
isArrayMethod · 0.80
toStringMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected