MCPcopy
hub / github.com/angular/angular / copyFrom

Method copyFrom

packages/common/http/src/headers.ts:193–199  ·  view source on GitHub ↗
(other: HttpHeaders)

Source from the content-addressed store, hash-verified

191 }
192
193 private copyFrom(other: HttpHeaders) {
194 other.init();
195 Array.from(other.headers.keys()).forEach((key) => {
196 this.headers.set(key, other.headers.get(key)!);
197 this.normalizedNames.set(key, other.normalizedNames.get(key)!);
198 });
199 }
200
201 private clone(update: Update): HttpHeaders {
202 const clone = new HttpHeaders();

Callers 1

initMethod · 0.95

Calls 5

initMethod · 0.65
keysMethod · 0.65
setMethod · 0.65
getMethod · 0.65
forEachMethod · 0.45

Tested by

no test coverage detected