github.com/jalateras/up@v0.1.5/http/gzip/gzip.go (about) 1 // Package gzip provides gzip compression support. 2 package gzip 3 4 import ( 5 "net/http" 6 7 "github.com/NYTimes/gziphandler" 8 9 "github.com/apex/up" 10 ) 11 12 // New gzip handler. 13 func New(c *up.Config, next http.Handler) http.Handler { 14 return gziphandler.GzipHandler(next) 15 }