Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UncompressMiddleware = func(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Header.Get("Content-Encoding") == "gzip" { r.Body = &gzipReader{body: r.Body} } h.ServeHTTP(w, r) }) }
UncompressMiddleware uncompresses gzipped HTTP requests carrying a 'Content-Encoding: gzip' header.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.