MCPcopy Create free account
hub / github.com/angular/angular / getHeadersToInclude

Function getHeadersToInclude

packages/common/http/src/transfer_cache.ts:182–190  ·  view source on GitHub ↗
(
  options: CacheOptions,
  requestOptions: HttpTransferCacheOptions | boolean | undefined,
)

Source from the content-addressed store, hash-verified

180}
181
182function getHeadersToInclude(
183 options: CacheOptions,
184 requestOptions: HttpTransferCacheOptions | boolean | undefined,
185): string[] | undefined {
186 // Request-specific config takes precedence over the global config.
187 return typeof requestOptions === 'object' && requestOptions.includeHeaders
188 ? requestOptions.includeHeaders
189 : options.includeHeaders;
190}
191
192/**
193 * Retrieves the cached response for a given request.

Callers 2

retrieveStateFromCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected