BodyDump returns a BodyDump middleware. BodyDump middleware captures the request and response payload and calls the registered handler. SECURITY: By default, this limits dumped bodies to 5MB to prevent memory exhaustion attacks. To customize limits, use BodyDumpWithConfig. To disable limits (not r
(handler BodyDumpHandler)
| 56 | // attacks. To customize limits, use BodyDumpWithConfig. To disable limits (not recommended |
| 57 | // in production), explicitly set MaxRequestBytes and MaxResponseBytes to -1. |
| 58 | func BodyDump(handler BodyDumpHandler) echo.MiddlewareFunc { |
| 59 | return BodyDumpWithConfig(BodyDumpConfig{Handler: handler}) |
| 60 | } |
| 61 | |
| 62 | // BodyDumpWithConfig returns a BodyDump middleware with config. |
| 63 | // See: `BodyDump()`. |
searching dependent graphs…