Documentation ¶
Index ¶
- Constants
- Variables
- func CompressRequest(request *http.Request, acceptEncoding string) error
- func CompressResponse(r io.Reader, acceptEncoding string, writer http.ResponseWriter, status int) error
- func DecompressRequest(request *http.Request) error
- func DecompressResponse(response *http.Response) error
Constants ¶
View Source
const ( EncodingIdentity = "identity" EncodingGzip = "gzip" EncodingSnappy = "x-snappy-framed" AcceptedEncodings = EncodingSnappy + ", " + EncodingGzip )
Variables ¶
View Source
var ErrUnacceptableEncoding = errors.New("unknown Content-Encoding")
Functions ¶
func CompressResponse ¶
func DecompressRequest ¶
func DecompressResponse ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.