MCPcopy
hub / github.com/angular/angular / delete

Method delete

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

* Deletes values for a given header in a clone of the original instance. * * @param name The header name. * @param value The value or values to delete for the given header. * * @returns A clone of the HTTP headers object with the given value deleted.

(name: string, value?: string | string[])

Source from the content-addressed store, hash-verified

166 * @returns A clone of the HTTP headers object with the given value deleted.
167 */
168 delete(name: string, value?: string | string[]): HttpHeaders {
169 return this.clone({name, value, op: 'd'});
170 }
171
172 private maybeSetNormalizedName(name: string, lcName: string): void {
173 if (!this.normalizedNames.has(lcName)) {

Callers 1

applyUpdateMethod · 0.45

Calls 1

cloneMethod · 0.95

Tested by

no test coverage detected