(request: RequestInfo, response: Response)
| 167 | } |
| 168 | |
| 169 | async put(request: RequestInfo, response: Response): Promise<void> { |
| 170 | const url = this.getRequestUrl(request); |
| 171 | this.cache.set(url, response.clone()); |
| 172 | |
| 173 | // Even though the body above is cloned, consume it here because the |
| 174 | // real cache consumes the body. |
| 175 | await response.text(); |
| 176 | |
| 177 | return; |
| 178 | } |
| 179 | |
| 180 | dehydrate(): DehydratedCache { |
| 181 | const dehydrated: DehydratedCache = {}; |
nothing calls this directly
no test coverage detected