const ( EncodingIdentity = "identity" EncodingGzip = "gzip" EncodingSnappy = "x-snappy-framed" AcceptedEncodings = EncodingSnappy + ", " + EncodingGzip )
var ErrUnacceptableEncoding = errors.New("unknown Content-Encoding")
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