encoding

package module
v0.0.0-...-f2ff765 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

README

encoding

hador accept encoding filter

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL