MCPcopy
hub / github.com/angular/angular / init

Method init

packages/common/http/src/headers.ts:178–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176 }
177
178 private init(): void {
179 if (!!this.lazyInit) {
180 if (this.lazyInit instanceof HttpHeaders) {
181 this.copyFrom(this.lazyInit);
182 } else {
183 this.lazyInit();
184 }
185 this.lazyInit = null;
186 if (!!this.lazyUpdate) {
187 this.lazyUpdate.forEach((update) => this.applyUpdate(update));
188 this.lazyUpdate = null;
189 }
190 }
191 }
192
193 private copyFrom(other: HttpHeaders) {
194 other.init();

Callers 5

hasMethod · 0.95
getMethod · 0.95
keysMethod · 0.95
getAllMethod · 0.95
forEachMethod · 0.95

Calls 3

copyFromMethod · 0.95
applyUpdateMethod · 0.95
forEachMethod · 0.45

Tested by

no test coverage detected