ResponseCache

Captures the content of a Response for caching.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Indicates whether this cached response has expired.

Functions

Link copied to clipboard
fun getBody(): ResponseBody

Returns a copy of the cached RequestBody.

Link copied to clipboard
fun ifModifiedHeaders(): Headers

Returns request headers that require that the resource has been modified since it was cached.

Link copied to clipboard
fun ifUnmodifiedHeaders(): Headers

Returns request headers that require that the resource has not been modified since it was cached.