* 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[])
| 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)) { |