write
abstract fun write(response: HttpResponse, cacheKey: String): HttpResponse
Content copied to clipboard
Store the response with the given cacheKey into the cache. The response's body is not consumed nor closed.
Return
a new HttpResponse whose body, when read, will write the contents to the cache.