MCPcopy Index your code
hub / github.com/angular/angular / append

Method append

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

* Appends a new value to the existing set of values for a header * and returns them in a clone of the original instance. * * @param name The header name for which to append the values. * @param value The value to append. * * @returns A clone of the HTTP headers object with the valu

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

Source from the content-addressed store, hash-verified

142 */
143
144 append(name: string, value: string | string[]): HttpHeaders {
145 return this.clone({name, value, op: 'a'});
146 }
147 /**
148 * Sets or modifies a value for a given header in a clone of the original instance.
149 * If the header already exists, its value is replaced with the given value

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.95

Tested by

no test coverage detected