Documentation ¶
Overview ¶
Package gzip provides data compression of HTTP responses for clients that support it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler enables gzip compression of HTTP responses for clients that support it via the 'Accept-Encoding' header. The compression level should be any integer value between `1` (optimal speed) and `9` (optimal compression) inclusive.
Compressing TLS traffic may leak the page contents to an attacker if the page contains user input: http://security.stackexchange.com/a/102015/12208
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.