install

fun <TBuilder : Any, TFeature : Any> install(
    feature: HttpClientFeature<TBuilder, TFeature>,
    configure: TBuilder.() -> Unit = {}
): Unit

Installs a specific feature and optionally configure it.

fun install(key: String, block: HttpClient.() -> Unit): Unit

Installs an interceptor defined by block. The key parameter is used as a unique name, that also prevents installing duplicated interceptors.

fun install(client: HttpClient): Unit

Applies all the installed features and customInterceptors from this configuration into the specified client.