MCPcopy Index your code
hub / github.com/labstack/echo / Gzip

Function Gzip

middleware/compress.go:59–61  ·  view source on GitHub ↗

Gzip returns a middleware which compresses HTTP response using gzip compression scheme.

()

Source from the content-addressed store, hash-verified

57
58// Gzip returns a middleware which compresses HTTP response using gzip compression scheme.
59func Gzip() echo.MiddlewareFunc {
60 return GzipWithConfig(GzipConfig{})
61}
62
63// GzipWithConfig returns a middleware which compresses HTTP response using gzip compression scheme.
64func GzipWithConfig(config GzipConfig) echo.MiddlewareFunc {

Callers 9

TestGzip_chunkedFunction · 0.85
TestGzip_NoContentFunction · 0.85
TestGzip_EmptyFunction · 0.85
TestGzip_ErrorReturnedFunction · 0.85
TestGzipWithStaticFunction · 0.85
BenchmarkGzipFunction · 0.85

Calls 1

GzipWithConfigFunction · 0.85

Tested by 9

TestGzip_chunkedFunction · 0.68
TestGzip_NoContentFunction · 0.68
TestGzip_EmptyFunction · 0.68
TestGzip_ErrorReturnedFunction · 0.68
TestGzipWithStaticFunction · 0.68
BenchmarkGzipFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…