()
| 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(); |