mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
15 lines
275 B
Go
15 lines
275 B
Go
package app
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/grafana/dskit/middleware"
|
|
"github.com/klauspost/compress/gzhttp"
|
|
)
|
|
|
|
func httpGzipMiddleware() middleware.Interface {
|
|
return middleware.Func(func(handler http.Handler) http.Handler {
|
|
return gzhttp.GzipHandler(handler)
|
|
})
|
|
}
|