Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 707 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 707 Bytes

gzip wercker status

Gzip middleware for Martini.

API Reference

Usage

import (
  "github.com/go-martini/martini"
  "github.com/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