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