gzip

fun gzip(shouldGzip: Boolean): HttpRequest.Builder

Sets whether or not the outbound request will be GZipped prior to sending.

Note. the Content-Encoding header will be automatically added during the call to build, so will overwrite any similar headers set via the header method.

Parameters

shouldGzip

true if the content should be gzipped; else false