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.

  1. getGracefulCloseTimeout1 :: Settings -> Int

    warp 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

  2. getGracefulCloseTimeout2 :: Settings -> Int

    warp 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

  3. 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

  4. 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.

  5. 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.

  6. testWithApplicationSettings :: Settings -> IO Application -> (Port -> IO a) -> IO a

    warp Network.Wai.Handler.Warp

    testWithApplication with given Settings.

  7. withApplicationSettings :: Settings -> IO Application -> (Port -> IO a) -> IO a

    warp Network.Wai.Handler.Warp

    withApplication with given Settings. This will ignore the port value set by setPort in Settings.

  8. 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

  9. 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.

  10. runSettingsConnectionMakerSecure :: Settings -> IO (IO (Connection, Transport), SockAddr) -> Application -> IO ()

    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

Page 1059 of many | Previous | Next