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

Method clone

packages/common/http/src/headers.ts:201–206  ·  view source on GitHub ↗
(update: Update)

Source from the content-addressed store, hash-verified

199 }
200
201 private clone(update: Update): HttpHeaders {
202 const clone = new HttpHeaders();
203 clone.lazyInit = !!this.lazyInit && this.lazyInit instanceof HttpHeaders ? this.lazyInit : this;
204 clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);
205 return clone;
206 }
207
208 private applyUpdate(update: Update): void {
209 const key = update.name.toLowerCase();

Callers 3

appendMethod · 0.95
setMethod · 0.95
deleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected