(request?: Request | string, options?: CacheQueryOptions)
| 155 | } |
| 156 | |
| 157 | async matchAll(request?: Request | string, options?: CacheQueryOptions): Promise<Response[]> { |
| 158 | if (request === undefined) { |
| 159 | return Array.from(this.cache.values()); |
| 160 | } |
| 161 | const res = await this.match(request, options); |
| 162 | if (res) { |
| 163 | return [res]; |
| 164 | } else { |
| 165 | return []; |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | async put(request: RequestInfo, response: Response): Promise<void> { |
| 170 | const url = this.getRequestUrl(request); |
no test coverage detected