( options: CacheOptions, requestOptions: HttpTransferCacheOptions | boolean | undefined, )
| 178 | } |
| 179 | |
| 180 | function 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. |
no outgoing calls
no test coverage detected