Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Timeout requests
Synopsis
- timeout :: Int -> Middleware
- timeoutStatus :: Status -> Int -> Middleware
- timeoutAs :: Response -> Int -> Middleware
Documentation
timeout :: Int -> Middleware Source #
Time out the request after the given number of seconds
Timeouts respond with
. See status503
or timeoutStatus
to customize the behavior of the timed-out case.timeoutAs
since 3.0.24.0
timeoutStatus :: Status -> Int -> Middleware Source #
Time out with the given Status
since 3.0.24.0