class HttpCache
This feature allow to use HTTP cache.
For detailed description follow: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
companion object Companion : HttpClientFeature<Config, HttpCache> |
|
class Config
HttpCache configuration. |
HttpCache(publicStorage: HttpCacheStorage, privateStorage: HttpCacheStorage)
This feature allow to use HTTP cache. |
val privateStorage: HttpCacheStorage |
|
val publicStorage: HttpCacheStorage |
val key: AttributeKey<HttpCache>
The AttributeKey for this feature. |
fun install(feature: HttpCache, scope: HttpClient): Unit
Installs the feature class for a HttpClient defined at scope. |
|
fun prepare(block: Config.() -> Unit): HttpCache
Builds a TFeature by calling the block with a TConfig config instance as receiver. |