middleware/compress.go
func Compress(level int, types ...string) func(next http.Handler) http.Handler {
	defaultCompressor = NewCompressor(level, types...)
	return defaultCompressor.Handler()
}
func Compress(level int, types ...string) func(next http.Handler) http.Handler {
	defaultCompressor = NewCompressor(level, types...)
	return defaultCompressor.Handler()
}
// Compress is a middleware that compresses response
// body of a given content types to a data format based
// on Accept-Encoding request header. It uses a given
// compression level.
//
// NOTE: make sure to set the Content-Type header on your response
// otherwise this middleware will not compress the response body. For ex, in
// your handler you should set w.Header().Set("Content-Type", http.DetectContentType(yourBody))
// or set it manually.
//
// DEPRECATED