Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrContentEncodingNotSupported = errors.New("Content-Encoding not supported")
)
Errors returned by DecompressedReader
Functions ¶
func CompressBuffer ¶
CompressBuffer GZip-compresses the payload into a buffer, and returns it.
func DecompressedReader ¶
func DecompressedReader(request *http.Request) (io.ReadCloser, error)
DecompressedReader returns a reader that decompresses the body. The compression scheme is determined by the Content-Encoding header. Closing the returned reader is the caller's responsibility.
func RegisterTestRoutes ¶
func RegisterTestRoutes(r *mux.Router, auther jwtauth.Authenticator)
RegisterTestRoutes registers some routes that should only be used for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.