Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
getGracefulCloseTimeout1 :: Settings -> Intwarp Network.Wai.Handler.Warp A timeout to limit the time (in milliseconds) waiting for FIN for HTTP/1.x. 0 means uses immediate close. Since 3.3.5
getGracefulCloseTimeout2 :: Settings -> Intwarp Network.Wai.Handler.Warp A timeout to limit the time (in milliseconds) waiting for FIN for HTTP/2. 0 means uses immediate close. Since 3.3.5
pauseTimeout :: Request -> IO ()warp Network.Wai.Handler.Warp Explicitly pause the slowloris timeout. This is useful for cases where you partially consume a request body. For more information, see https://github.com/yesodweb/wai/issues/351 Since 3.0.10
runSettings :: Settings -> Application -> IO ()warp Network.Wai.Handler.Warp Run an Application with the given Settings. This opens a listen socket on the port defined in Settings and calls runSettingsSocket.
runSettingsSocket :: Settings -> Socket -> Application -> IO ()warp Network.Wai.Handler.Warp This installs a shutdown handler for the given socket and calls runSettingsConnection with the default connection setup action which handles plain (non-cipher) HTTP. When the listen socket in the second argument is closed, all live connections are gracefully shut down. The supplied socket can be a Unix named socket, which can be used when reverse HTTP proxying into your application. Note that the settingsPort will still be passed to Applications via the serverPort record.
testWithApplicationSettings :: Settings -> IO Application -> (Port -> IO a) -> IO awarp Network.Wai.Handler.Warp testWithApplication with given Settings.
withApplicationSettings :: Settings -> IO Application -> (Port -> IO a) -> IO awarp Network.Wai.Handler.Warp withApplication with given Settings. This will ignore the port value set by setPort in Settings.
runSettingsConnection :: Settings -> IO (Connection, SockAddr) -> Application -> IO ()warp Network.Wai.Handler.Warp.Internal The connection setup action would be expensive. A good example is initialization of TLS. So, this converts the connection setup action to the connection maker which will be executed after forking a new worker thread. Then this calls runSettingsConnectionMaker with the connection maker. This allows the expensive computations to be performed in a separate worker thread instead of the main server loop. Since 1.3.5
runSettingsConnectionMaker :: Settings -> IO (IO Connection, SockAddr) -> Application -> IO ()warp Network.Wai.Handler.Warp.Internal This modifies the connection maker so that it returns TCP for Transport (i.e. plain HTTP) then calls runSettingsConnectionMakerSecure.
-
warp Network.Wai.Handler.Warp.Internal The core run function which takes Settings, a connection maker and Application. The connection maker can return a connection of either plain HTTP or HTTP over TLS. Since 2.1.4