MCPcopy
hub / github.com/angular/angular / has

Method has

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

* Checks for existence of a given header. * * @param name The header name to check for existence. * * @returns True if the header exists, false otherwise.

(name: string)

Source from the content-addressed store, hash-verified

88 * @returns True if the header exists, false otherwise.
89 */
90 has(name: string): boolean {
91 this.init();
92
93 return this.headers.has(name.toLowerCase());
94 }
95
96 /**
97 * Retrieves the first value of a given header.

Callers

nothing calls this directly

Calls 2

initMethod · 0.95
hasMethod · 0.65

Tested by

no test coverage detected