MCPcopy Create free account
hub / github.com/angular/angular / setHeaderEntries

Method setHeaderEntries

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

Source from the content-addressed store, hash-verified

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