ktor-client-core / io.ktor.client.features.cache / HttpCache / Companion

Companion

companion object Companion : HttpClientFeature<Config, HttpCache>

Companion Object Properties

key

val key: AttributeKey<HttpCache>

The AttributeKey for this feature.

Companion Object Functions

install

fun install(feature: HttpCache, scope: HttpClient): Unit

Installs the feature class for a HttpClient defined at scope.

prepare

fun prepare(block: Config.() -> Unit): HttpCache

Builds a TFeature by calling the block with a TConfig config instance as receiver.