Check Gzip Compression [Java Code]

An example of checking if gzip compression is enabled for the server. To test gzip compression for any resource, simply make a GET request to that resource. When gzip compression is enabled, response headers contain the Content-Encoding: gzip header along with other headers. The Java code was automatically generated for the Check Gzip Compression example.
Check Gzip Compression [Java Code] Send
GET /echo HTTP/1.1