ktor-client-core / io.ktor.client.features / HttpPlainText / Config

Config

class Config

Charset configuration for HttpPlainText feature.

Constructors

<init>

Config()

Charset configuration for HttpPlainText feature.

Properties

defaultCharset

var defaultCharset: <ERROR CLASS>

Default Charset to use.

responseCharsetFallback

var responseCharsetFallback: <ERROR CLASS>

Fallback charset for the response. Use it if no charset specified.

sendCharset

var sendCharset: <ERROR CLASS>?

Explicit Charset for sending content.

Functions

register

fun register(charset: <ERROR CLASS>, quality: Float? = null): Unit

Add charset to allowed list with selected quality.