Documentation
¶
Overview ¶
Package compress provides pure functions for content encoding negotiation and compression decision making.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NegotiateEncoding ¶
NegotiateEncoding selects best encoding from Accept-Encoding header. Preference: brotli > gzip > identity (no encoding).
func ShouldCompressContentType ¶
ShouldCompressContentType checks if content type should be compressed.
func ShouldCompressPath ¶
ShouldCompressPath checks if path extension should be compressed. Returns true if path should be compressed, false if it should not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.