Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setBeforeMainLoop :: IO () -> Settings -> Settings

    warp Network.Wai.Handler.Warp

    Code to run after the listening socket is ready but before entering the main event loop. Useful for signaling to tests that they can start running, or to drop permissions after binding to a restricted port. Default: do nothing. Since 2.1.0

  2. setFdCacheDuration :: Int -> Settings -> Settings

    warp Network.Wai.Handler.Warp

    Cache duration time of file descriptors in seconds. 0 means that the cache mechanism is not used. The FD cache is an optimization that is useful for servers dealing with static files. However, if files are being modified, it can cause incorrect results in some cases. Therefore, we disable it by default. If you know that your files will be static or you prefer performance to file consistency, it's recommended to turn this on; a reasonable value for those cases is 10. Enabling this cache results in drastic performance improvement for file transfers. Default value: 0, was previously 10 Since 3.0.13

  3. setFileInfoCacheDuration :: Int -> Settings -> Settings

    warp Network.Wai.Handler.Warp

    Cache duration time of file information in seconds. 0 means that the cache mechanism is not used. The file information cache is an optimization that is useful for servers dealing with static files. However, if files are being modified, it can cause incorrect results in some cases. Therefore, we disable it by default. If you know that your files will be static or you prefer performance to file consistency, it's recommended to turn this on; a reasonable value for those cases is 10. Enabling this cache results in drastic performance improvement for file transfers. Default value: 0

  4. setFork :: (((forall a . () => IO a -> IO a) -> IO ()) -> IO ()) -> Settings -> Settings

    warp Network.Wai.Handler.Warp

    Code to fork a new thread to accept a connection. This may be useful if you need OS bound threads, or if you wish to develop an alternative threading model. Default: void . forkIOWithUnmask Since 3.0.4

  5. setGracefulCloseTimeout1 :: Int -> Settings -> Settings

    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. Default: 0. Since 3.3.5

  6. setGracefulCloseTimeout2 :: Int -> Settings -> Settings

    warp 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

  7. setGracefulShutdownTimeout :: Maybe Int -> Settings -> Settings

    warp 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

  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

  9. setHTTP2Disabled :: Settings -> Settings

    warp Network.Wai.Handler.Warp

    Disable HTTP2. Since 3.1.7

  10. setHost :: HostPreference -> Settings -> Settings

    warp Network.Wai.Handler.Warp

    Interface to bind to. Default value: HostIPv4 Since 2.1.0

Page 166 of many | Previous | Next