Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setGracefulCloseTimeout2 :: Int -> Settings -> Settingswarp Network.Wai.Handler.Warp A timeout to limit the time (in milliseconds) waiting for FIN for HTTP/2. 0 means uses immediate close. Default: 2000. Since 3.3.5
setGracefulShutdownTimeout :: Maybe Int -> Settings -> Settingswarp Network.Wai.Handler.Warp Set the graceful shutdown timeout. A timeout of Nothing will wait indefinitely, and a number, if provided, will be treated as seconds to wait for requests to finish, before shutting down the server entirely. Graceful shutdown mode is entered when the server socket is closed; see setInstallShutdownHandler for an example of how this could be done in response to a UNIX signal. Since 3.2.8
setHTTP2Data :: Request -> Maybe HTTP2Data -> IO ()warp Network.Wai.Handler.Warp Setting HTTP2Data through vault of the request. Application or Middleware should use this. Since: 3.2.7
setHTTP2Disabled :: Settings -> Settingswarp Network.Wai.Handler.Warp Disable HTTP2. Since 3.1.7
setHost :: HostPreference -> Settings -> Settingswarp Network.Wai.Handler.Warp Interface to bind to. Default value: HostIPv4 Since 2.1.0
setInstallShutdownHandler :: (IO () -> IO ()) -> Settings -> Settingswarp Network.Wai.Handler.Warp A code to install shutdown handler. For instance, this code should set up a UNIX signal handler. The handler should call the first argument, which closes the listen socket, at shutdown. Example usage:
settings :: IO () -> Settings settings shutdownAction = setInstallShutdownHandler shutdownHandler defaultSettings where shutdownHandler closeSocket = void $ installHandler sigTERM (Catch $ shutdownAction >> closeSocket) Nothing
Note that by default, the graceful shutdown mode lasts indefinitely (see setGracefulShutdownTimeout). If you install a signal handler as above, upon receiving that signal, the custom shutdown action will run and all outstanding requests will be handled. You may instead prefer to do one or both of the following:- Only wait a finite amount of time for outstanding requests to complete, using setGracefulShutdownTimeout.
- Only catch one signal, so the second hard-kills the Warp server, using CatchOnce.
setLogger :: (Request -> Status -> Maybe Integer -> IO ()) -> Settings -> Settingswarp Network.Wai.Handler.Warp Setting a log function. Since 3.X.X
setManager :: Manager -> Settings -> Settingswarp Network.Wai.Handler.Warp Use an existing timeout manager instead of spawning a new one. If used, settingsTimeout is ignored. Since 2.1.0
setMaxBuilderResponseBufferSize :: Int -> Settings -> Settingswarp Network.Wai.Handler.Warp Set the maximum buffer size for sending Builder responses. Since 3.3.22
setMaxTotalHeaderLength :: Int -> Settings -> Settingswarp Network.Wai.Handler.Warp Set the maximum header size that Warp will tolerate when using HTTP/1.x. Since 3.3.8