Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextFromRequest ¶
ContextFromRequest returns a new context with identifiers of the request to be used later when logging the query.
func ContextWithPath ¶
ContextWithPath returns a new context with the given path to be used later when logging the query.
Types ¶
type CompressionHandler ¶
CompressionHandler is a wrapper around http.Handler which adds suitable response compression based on the client's Accept-Encoding headers.
func (CompressionHandler) ServeHTTP ¶
func (c CompressionHandler) ServeHTTP(writer http.ResponseWriter, req *http.Request)
ServeHTTP adds compression to the original http.Handler's ServeHTTP() method.
Click to show internal directories.
Click to hide internal directories.