DecompressWithConfig returns a decompress middleware with config or panics on invalid configuration. SECURITY: If MaxDecompressedSize is not set (zero value), it defaults to 100MB to prevent DoS attacks via zip bombs. Set to -1 to explicitly disable limits if needed for your use case.
(config DecompressConfig)
| 58 | // SECURITY: If MaxDecompressedSize is not set (zero value), it defaults to 100MB to prevent |
| 59 | // DoS attacks via zip bombs. Set to -1 to explicitly disable limits if needed for your use case. |
| 60 | func DecompressWithConfig(config DecompressConfig) echo.MiddlewareFunc { |
| 61 | return toMiddlewareOrPanic(config) |
| 62 | } |
| 63 | |
| 64 | // ToMiddleware converts DecompressConfig to middleware or returns an error for invalid configuration |
| 65 | func (config DecompressConfig) ToMiddleware() (echo.MiddlewareFunc, error) { |
searching dependent graphs…