mirror of
https://github.com/labstack/echo.git
synced 2025-07-05 00:58:47 +02:00
@ -42,8 +42,8 @@ var (
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
// Timeout returns a middleware which recovers from panics anywhere in the chain
|
// Timeout returns a middleware which returns error (503 Service Unavailable error) to client immediately when handler
|
||||||
// and handles the control to the centralized HTTPErrorHandler.
|
// call runs for longer than its time limit. NB: timeout does not stop handler execution.
|
||||||
func Timeout() echo.MiddlewareFunc {
|
func Timeout() echo.MiddlewareFunc {
|
||||||
return TimeoutWithConfig(DefaultTimeoutConfig)
|
return TimeoutWithConfig(DefaultTimeoutConfig)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user