public HttpRequestBuilder compress ( int level ) throws IOException { addHeader ( "Content-Encoding" , "gzip" ) ; entity = HttpUtils . gzip ( entity , level ) ; return this ; }
Compress the request body using the specified compression level . The content must have already been set on the builder .