Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encoding ¶
Encoding checks if the given encoding val is acceptable according to the Accept-Encoding header. See https://www.rfc-editor.org/rfc/rfc7231#section-5.3.4 .
If header is empty/nonexistent, the RFC says, "the user agent has no preferences regarding content-codings", and also "it does not imply that the user agent will be able to correctly process all encodings", so we assume it will not, and return false. Empty val also means that this check fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.