MCPcopy
hub / github.com/labstack/echo / Decompress

Function Decompress

middleware/decompress.go:52–54  ·  view source on GitHub ↗

Decompress decompresses request body based if content encoding type is set to "gzip" with default config SECURITY: By default, this limits decompressed data to 100MB to prevent zip bomb attacks. To customize the limit, use DecompressWithConfig. To disable limits (not recommended in production), set

()

Source from the content-addressed store, hash-verified

50// To customize the limit, use DecompressWithConfig. To disable limits (not recommended in production),
51// set MaxDecompressedSize to -1.
52func Decompress() echo.MiddlewareFunc {
53 return DecompressWithConfig(DecompressConfig{})
54}
55
56// DecompressWithConfig returns a decompress middleware with config or panics on invalid configuration.
57//

Calls 1

DecompressWithConfigFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…