( options: CacheOptions, requestOptions: HttpTransferCacheOptions | boolean | undefined, )
| 152 | } |
| 153 | |
| 154 | function getHeadersToInclude( |
| 155 | options: CacheOptions, |
| 156 | requestOptions: HttpTransferCacheOptions | boolean | undefined, |
| 157 | ): string[] | undefined { |
| 158 | // Request-specific config takes precedence over the global config. |
| 159 | return typeof requestOptions === 'object' && requestOptions.includeHeaders |
| 160 | ? requestOptions.includeHeaders |
| 161 | : options.includeHeaders; |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Retrieves the cached response for a given request. |
no outgoing calls
no test coverage detected
searching dependent graphs…