Recover returns a middleware which recovers from panics anywhere in the chain and handles the control to the centralized HTTPErrorHandler.
()
| 41 | // Recover returns a middleware which recovers from panics anywhere in the chain |
| 42 | // and handles the control to the centralized HTTPErrorHandler. |
| 43 | func Recover() echo.MiddlewareFunc { |
| 44 | return RecoverWithConfig(DefaultRecoverConfig) |
| 45 | } |
| 46 | |
| 47 | // RecoverWithConfig returns a Recovery middleware with config or panics on invalid configuration. |
| 48 | func RecoverWithConfig(config RecoverConfig) echo.MiddlewareFunc { |
searching dependent graphs…