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

Function getHeadersToInclude

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

Source from the content-addressed store, hash-verified

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

Callers 2

retrieveStateFromCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected