compresshttp

package
v7.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 CompressRequest

func CompressRequest(request *http.Request, acceptEncoding string) error

func CompressResponse

func CompressResponse(r io.Reader, acceptEncoding string, writer http.ResponseWriter, status int) error

func DecompressRequest

func DecompressRequest(request *http.Request) error

func DecompressResponse

func DecompressResponse(response *http.Response) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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