
Package handlers is a collection of handlers (aka "http middleware") for use with go's net/http package (or any framework supporting http.handler), including:
?? logginghandler for logging http requests in the apache common log format
(http://httpd.apache.org/docs/2.2/logs.html#common).
?? combinedlogginghandler for logging http requests in the apache combined log
format (http://httpd.apache.org/docs/2.2/logs.html#combined) commonly used
by both apache and nginx.
?? compresshandler for gzipping responses.
?? contenttypehandler for validating requests against a list of accepted
content types.
?? methodhandler for matching http methods against handlers in a
map[string]http.handler
?? proxyheaders for populating r.remoteaddr and r.url.scheme based on the
x-forwarded-for, x-real-ip, x-forwarded-proto and rfc7239 forwarded headers
when running a go server behind a http reverse proxy.
?? canonicalhost for re-directing to the preferred host when handling multiple
domains (i.e. multiple cname aliases).
other handlers are documented on the gorilla website (http://www.gorillatoolkit.org/pkg/handlers).