wai-extra-3.0.25: Provides some basic WAI handlers and middleware.

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.Timeout

Description

Timeout requests

Synopsis

Documentation

timeout :: Int -> Middleware Source #

Time out the request after the given number of seconds

Timeouts respond with status503. See timeoutStatus or timeoutAs to customize the behavior of the timed-out case.

since 3.0.24.0

timeoutStatus :: Status -> Int -> Middleware Source #

Time out with the given Status

since 3.0.24.0

timeoutAs :: Response -> Int -> Middleware Source #

Time out with the given Response

since 3.0.24.0