MCPcopy Index your code
hub / github.com/angular/angular / getFilteredHeaders

Function getFilteredHeaders

packages/common/http/src/transfer_cache.ts:357–374  ·  view source on GitHub ↗
(
  headers: HttpHeaders,
  includeHeaders: string[] | undefined,
)

Source from the content-addressed store, hash-verified

355}
356
357function 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
376function sortAndConcatParams(params: HttpParams | URLSearchParams): string {
377 const searchParams = new URLSearchParams(

Callers 1

Calls 1

getAllMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…