BodyDumpWithConfig returns a BodyDump middleware with config. See: `BodyDump()`. SECURITY: If MaxRequestBytes and MaxResponseBytes are not set (zero values), they default to 5MB each to prevent DoS attacks via large payloads. Set them explicitly to -1 to disable limits if needed for your use case.
(config BodyDumpConfig)
| 66 | // to 5MB each to prevent DoS attacks via large payloads. Set them explicitly to -1 to disable |
| 67 | // limits if needed for your use case. |
| 68 | func BodyDumpWithConfig(config BodyDumpConfig) echo.MiddlewareFunc { |
| 69 | return toMiddlewareOrPanic(config) |
| 70 | } |
| 71 | |
| 72 | // ToMiddleware converts BodyDumpConfig to middleware or returns an error for invalid configuration |
| 73 | func (config BodyDumpConfig) ToMiddleware() (echo.MiddlewareFunc, error) { |
searching dependent graphs…