Companion

object Companion

Functions

Link copied to clipboard
fun from(response: Response): ResponseCache?

Creates a ResponseCache from response if it is eligible for caching.

fun from(response: Response, bodyByteString: ByteString, contentType: MediaType?): ResponseCache?

Creates a ResponseCache from response using a pre-buffered body if the response is eligible for caching.