HttpClientPlugin

interface HttpClientPlugin<out TConfig : Any, TPlugin : Any>

Base interface representing a HttpClient plugin.

Inheritors

Properties

Link copied to clipboard
abstract val key: AttributeKey<TPlugin>

The AttributeKey for this plugin.

Functions

Link copied to clipboard
abstract fun install(plugin: TPlugin, scope: HttpClient)

Installs the plugin class for a HttpClient defined at scope.

Link copied to clipboard
abstract fun prepare(block: TConfig.() -> Unit = {}): TPlugin

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