HttpClientFeature

interface HttpClientFeature<out TConfig : Any, TFeature : Any>

Base interface representing a HttpClient feature.

Properties

key

abstract val key: AttributeKey<TFeature>

The AttributeKey for this feature.

Functions

install

abstract fun install(
    feature: TFeature,
    scope: HttpClient
): Unit

Installs the feature class for a HttpClient defined at scope.

prepare

abstract fun prepare(
    block: TConfig.() -> Unit = {}
): TFeature

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

Inheritors

Companion

companion object Companion : 
    HttpClientFeature<Unit, ExpectSuccess>

Companion

companion object Companion : 
    HttpClientFeature<Config, HttpCallValidator>

Companion

companion object Companion : 
    HttpClientFeature<Config, HttpCache>

Companion

companion object Companion : 
    HttpClientFeature<Config, HttpCookies>

Companion

companion object Companion : 
    HttpClientFeature<Config, ContentEncoding>

Companion

companion object Companion : 
    HttpClientFeature<Config, Logging>

Feature

companion object Feature : 
    HttpClientFeature<Unit, WebSockets>

Feature

companion object Feature : 
    HttpClientFeature<HttpRequestBuilder, DefaultRequest>

Feature

companion object Feature : 
    HttpClientFeature<Config, HttpPlainText>

Feature

companion object Feature : 
    HttpClientFeature<Unit, HttpRedirect>

Feature

companion object Feature : 
    HttpClientFeature<HttpSend, HttpSend>

Feature installation object

Feature

companion object Feature : 
    HttpClientFeature<Config, UserAgent>

Feature

companion object Feature : 
    HttpClientFeature<Config, ResponseObserver>

Feature

companion object Feature : 
    HttpClientFeature<Configuration, BasicAuth>

Feature

companion object Feature : HttpClientFeature<Auth, Auth>

Feature

companion object Feature : 
    HttpClientFeature<Config, JsonFeature>

Companion object for feature installation