Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressHandler ¶
CompressHandler gzip/brotli compresses HTTP responses for clients that support it via the 'Accept-Encoding' header.
Compressing TLS traffic may leak the page contents to an attacker if the page contains user input: http://security.stackexchange.com/a/102015/12208
func CompressHandlerLevel ¶
CompressHandlerLevel gzip/brotli compresses HTTP responses with specified compression level for clients that support it via the 'Accept-Encoding' header.
The compression level should be valid for encodings you use
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.