HttpPlainText

class HttpPlainText

HttpClient feature that encodes String request bodies to TextContent and processes the response body as String.

To configure charsets set following properties in HttpPlainText.Config.

Types

Config

class Config

Charset configuration for HttpPlainText feature.

Feature

companion object Feature : 
    HttpClientFeature<Config, HttpPlainText>

Properties

defaultCharset

var defaultCharset: Charset

Deprecated

Companion Object Properties

key

The AttributeKey for this feature.

Companion Object Functions

install

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

Installs the feature class for a HttpClient defined at scope.

prepare

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

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