install
fun <TBuilder : Any, TPlugin : Any> install(plugin: HttpClientPlugin<TBuilder, TPlugin>, configure: TBuilder.() -> Unit = {})
Content copied to clipboard
Installs a specific plugin and optionally configure it.
Installs an interceptor defined by block. The key parameter is used as a unique name, that also prevents installing duplicated interceptors.
Applies all the installed plugins and customInterceptors from this configuration into the specified client.