gzip import "github.com/goadesign/goa/middleware/gzip"
Overview Index Overview Index func Middleware(level int, o …Option) goa.Middleware type Option func AddContentTypes(types …string) Option func AddStatusCodes(codes …int) Option func IgnoreRange(b bool) Option func MinSize(n int) Option func OnlyContentTypes(types …string) Option func OnlyStatusCodes(codes …int) Option Package files doc.go middleware.go
func Middleware func Middleware(level int, o ...Option) goa.Middleware Middleware encodes the response using Gzip encoding and sets all the appropriate headers.
↧