ContentEncoding

class ContentEncoding

Content-Encoding header support.

See also: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding

Types

Companion

companion object Companion : 
    HttpClientFeature<Config, ContentEncoding>

Config

class Config

ContentEncoding configuration.

Constructors

<init>

ContentEncoding(
    encoders: Map<String, ContentEncoder>,
    qualityValues: Map<String, Float>)

Content-Encoding header support.

Companion Object Properties

key

The AttributeKey for this feature.

Companion Object Functions

install

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

Installs the feature class for a HttpClient defined at scope.

prepare

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

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