MCPcopy Index your code
hub / github.com/labstack/echo / Recover

Function Recover

middleware/recover.go:43–45  ·  view source on GitHub ↗

Recover returns a middleware which recovers from panics anywhere in the chain and handles the control to the centralized HTTPErrorHandler.

()

Source from the content-addressed store, hash-verified

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

Callers 2

TestRecoverFunction · 0.85

Calls 1

RecoverWithConfigFunction · 0.85

Tested by 2

TestRecoverFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…