Package-level declarations

Types

Link copied to clipboard

A configuration for the ContentEncoding plugin.

Properties

Link copied to clipboard

List of ContentEncoder names that were used to decode response body.

Link copied to clipboard

A plugin that allows you to enable specified compression algorithms (such as gzip and deflate) and configure their settings. This plugin serves two primary purposes:

Functions

Link copied to clipboard
fun HttpRequestBuilder.compress(vararg contentEncoderName: String)

Compresses request body using ContentEncoding plugin.

fun HttpRequestBuilder.compress(contentEncoderNames: List<String>)

Compress request body using ContentEncoding plugin.

Link copied to clipboard
fun HttpClientConfig<*>.ContentEncoding(mode: ContentEncodingConfig.Mode = ContentEncodingConfig.Mode.DecompressResponse, block: ContentEncodingConfig.() -> Unit = { gzip() deflate() identity() })

Installs or configures the ContentEncoding plugin.