Companion

object Companion

Functions

Link copied to clipboard
fun cacheKey(httpRequest: HttpRequest): String

Properties

Link copied to clipboard
const val CACHE_DO_NOT_STORE: String

Do not store the http response

Link copied to clipboard
const val CACHE_EXPIRE_AFTER_READ_HEADER: String

Expire cached response flag http header

Link copied to clipboard
const val CACHE_EXPIRE_TIMEOUT_HEADER: String

Cached response expiration timeout http header (in millisecond)

Link copied to clipboard
const val CACHE_FETCH_POLICY_HEADER: String

Cache fetch strategy http header

Link copied to clipboard
const val CACHE_FIRST: String
Link copied to clipboard
const val CACHE_KEY_HEADER: String
Link copied to clipboard
const val CACHE_ONLY: String
Link copied to clipboard
const val CACHE_OPERATION_TYPE_HEADER: String

Cache operation type http header

Link copied to clipboard
const val CACHE_SERVED_DATE_HEADER: String

Request served Date/time http header

Link copied to clipboard
const val FROM_CACHE: String

Signals that HTTP response comes from the local cache

Link copied to clipboard
const val NETWORK_FIRST: String
Link copied to clipboard
const val NETWORK_ONLY: String