mirror of
https://github.com/labstack/echo.git
synced 2025-04-19 12:12:51 +02:00
parent
ae4665cf7a
commit
10d8c53d55
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user