title: “HTTP::DISABLE_GZIP” author: “laplante@plcb.ca” date: 2024-12-20 version: “1.0.0” section: “1g” category: “GOWEB/HTTP”
http::disable_gzip — Disable HTTP gzip compression.
http::disable_gzip or disable_gzip() http::disableGzip or disableGzip()
By default, when the client sends Accept-Encoding: gzip
, the GoWeb server returns compressed data.
Calling disable_gzip()
disables this behavior, ensuring that the response body is always sent uncompressed.
This is useful when debugging, testing, or working with clients that cannot properly handle gzip compression.
disable_gzip();