Gzip middleware for Neko
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).