//okhttp/okhttp3/CacheControl/Companion
Companion¶
[common]\ expect object Companion
[jvm, nonJvm]\ actual object Companion
Functions¶
Name | Summary |
---|---|
parse | [common] expect fun parse(headers: Headers): CacheControl Returns the cache directives of headers. This honors both Cache-Control and Pragma headers if they are present. [jvm, nonJvm] [jvm] @JvmStatic actual fun parse(headers: Headers): CacheControl [nonJvm] actual fun parse(headers: Headers): CacheControl |
Properties¶
Name | Summary |
---|---|
FORCE_CACHE | [common] expect val FORCE_CACHE: CacheControl Cache control request directives that uses the cache only, even if the cached response is stale. If the response isn’t available in the cache or requires server validation, the call will fail with a 504 Unsatisfiable Request .[jvm] @JvmField actual val FORCE_CACHE: CacheControl [nonJvm] actual val FORCE_CACHE: CacheControl |
FORCE_NETWORK | [common] expect val FORCE_NETWORK: CacheControl Cache control request directives that require network validation of responses. Note that such requests may be assisted by the cache via conditional GET requests. [jvm] @JvmField actual val FORCE_NETWORK: CacheControl [nonJvm] actual val FORCE_NETWORK: CacheControl |