Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 808 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 808 Bytes

#gzip wercker status GoDoc

Gzip middleware for Neko

Usage

package main
import (
  "github.com/rocwong/neko"
  "github.com/neko-contrib/gzip"
)

func main() {
  m := neko.New()
  m.Use(gzip.Gzip(gzip.DefaultCompression))
  m.Run(":3000")
}

Make sure to include the Gzip middleware above other middleware that alter the response body (like the render middleware).

Authors