compress

fun HttpRequestBuilder.compress(vararg contentEncoderName: String)

Compresses request body using ContentEncoding plugin.

Parameters

contentEncoderName

names of compression encoders to use, such as "gzip", "deflate", etc


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

Compress request body using ContentEncoding plugin.

Parameters

contentEncoderNames

names of compression encoders to use, such as "gzip", "deflate", etc