( headers: HttpHeaders, includeHeaders: string[] | undefined, )
| 384 | } |
| 385 | |
| 386 | function getFilteredHeaders( |
| 387 | headers: HttpHeaders, |
| 388 | includeHeaders: string[] | undefined, |
| 389 | ): Record<string, string[]> { |
| 390 | if (!includeHeaders) { |
| 391 | return {}; |
| 392 | } |
| 393 | |
| 394 | const headersMap: Record<string, string[]> = {}; |
| 395 | for (const key of includeHeaders) { |
| 396 | const values = headers.getAll(key); |
| 397 | if (values !== null) { |
| 398 | headersMap[key] = values; |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | return headersMap; |
| 403 | } |
| 404 | |
| 405 | function sortAndConcatParams(params: HttpParams | URLSearchParams): string { |
| 406 | const searchParams = new URLSearchParams( |
no test coverage detected