package
Version:
v0.0.0-...-c354ab8
Opens a new window with list of versions in this module.
Published: Jan 20, 2014
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gzip
Gzip middleware for Martini.
API Reference
Usage
import (
"github.com/codegangsta/martini"
"github.com/codegangsta/martini-contrib/gzip"
)
func main() {
m := martini.Classic()
// gzip every request
m.Use(gzip.All())
m.Run()
}
Make sure to include the Gzip middleware above other middleware that alter the response body (like the render middleware).
Authors
Documentation
¶
All returns a Handler that adds gzip compression to all requests
Source Files
¶
Click to show internal directories.
Click to hide internal directories.