Config

class Config

Charset configuration for HttpPlainText feature.

Constructors

<init>

Config()

Charset configuration for HttpPlainText feature.

Properties

defaultCharset

var defaultCharset: Charset

Default Charset to use.

responseCharsetFallback

var responseCharsetFallback: Charset

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

sendCharset

var sendCharset: Charset?

Explicit Charset for sending content.

Functions

register

fun register(charset: Charset, quality: Float? = null): Unit

Add charset to allowed list with selected quality.