( headers: HttpHeaders, includeHeaders: string[] | undefined, )
| 355 | } |
| 356 | |
| 357 | function getFilteredHeaders( |
| 358 | headers: HttpHeaders, |
| 359 | includeHeaders: string[] | undefined, |
| 360 | ): Record<string, string[]> { |
| 361 | if (!includeHeaders) { |
| 362 | return {}; |
| 363 | } |
| 364 | |
| 365 | const headersMap: Record<string, string[]> = {}; |
| 366 | for (const key of includeHeaders) { |
| 367 | const values = headers.getAll(key); |
| 368 | if (values !== null) { |
| 369 | headersMap[key] = values; |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | return headersMap; |
| 374 | } |
| 375 | |
| 376 | function sortAndConcatParams(params: HttpParams | URLSearchParams): string { |
| 377 | const searchParams = new URLSearchParams( |
no test coverage detected
searching dependent graphs…