MCPcopy
hub / github.com/angular/angular / getAll

Method getAll

packages/common/http/src/headers.ts:128–132  ·  view source on GitHub ↗

* Retrieves a list of values for a given header. * * @param name The header name from which to retrieve values. * * @returns A string of values if the header exists, null otherwise.

(name: string)

Source from the content-addressed store, hash-verified

126 * @returns A string of values if the header exists, null otherwise.
127 */
128 getAll(name: string): string[] | null {
129 this.init();
130
131 return this.headers.get(name.toLowerCase()) || null;
132 }
133
134 /**
135 * Appends a new value to the existing set of values for a header

Callers

nothing calls this directly

Calls 2

initMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected