mergeHttpHeaders()
ts
function mergeHttpHeaders(...headers): HttpHeaders;Defined in: common/merge.common.ts:17
Merge HTTP headers from different sources
Given HTTP headers will be merged in sequential order. If you provide HTTP headers A & B, the output would be A' & B.
Parameters
| Parameter | Type | Description |
|---|---|---|
...headers | HttpHeadersOption[] | Different HTTP headers |
Returns
HttpHeaders
Merged HTTP headers as instance
Remarks
This function will take care of the data structure. You can provide either the HTTP header instance or a record. The result will be deterministic.
Since
1.0.0
Author
Simon Kovtyk