To trigger the server to compress the reply you need to set the Accept-Encoding header to gzip.
1 |
"Accept-Encoding": "gzip" |
If the reply of the API is above 1000 Bytes, the server will then compress the response and add the Content-Encoding header to the response.
1 |
"Content-Encoding": "gzip" |