Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeflateFilter ¶
func DeflateFilter(level int, must bool) hador.FilterFunc
DeflateFilter returns a Filter that adds flate compression to all requests. Make sure to use this before all other filters that alter the response body.
func GZipFilter ¶
func GZipFilter(must bool) hador.FilterFunc
GZipFilter returns a Filter that adds gzip compression to all requests. Make sure to use this before all other filters that alter the response body.
Types ¶
type AcceptEncoding ¶
type AcceptEncoding string
AcceptEncoding is Accept-Encoding header
func (AcceptEncoding) Accept ¶
func (ae AcceptEncoding) Accept(coding string) bool
Accept checks if this coding could be accepted. See RFC2616-14.3
Click to show internal directories.
Click to hide internal directories.