HTTP::DISABLE_GZIP 1g 2024-12-20 laplante@plcb.ca GOWEB/HTTP


title: “HTTP::DISABLE_GZIP” author: “laplante@plcb.ca” date: 2024-12-20 version: “1.0.0” section: “1g” category: “GOWEB/HTTP”


Name

http::disable_gzip — Disable HTTP gzip compression.

Synopsis

http::disable_gzip or disable_gzip() http::disableGzip or disableGzip()

Description

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.

Examples

disable_gzip();

See also

Version