Package-level declarations
Types
Link copied to clipboard
class ContentEncodingConfig
A configuration for the ContentEncoding plugin.
Link copied to clipboard
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
Compresses request body using ContentEncoding plugin.
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.