| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Wai.Cli
Synopsis
- data GracefulMode
- data WaiOptions = WaiOptions {
- wHttpPort :: Int
- wHttpHost :: String
- wUnixSock :: String
- wProtocol :: String
- wTlsKeyFile :: String
- wTlsCertFile :: String
- wGracefulMode :: String
- wDevlogging :: Maybe Bool
- fdStart :: CInt
- getActivatedSockets :: IO (Maybe [Socket])
- runActivated :: (Settings -> Socket -> Application -> IO ()) -> Settings -> Application -> IO ()
- runGraceful :: GracefulMode -> (Settings -> Application -> IO ()) -> Settings -> Application -> IO ()
- runWarp :: (WaiOptions -> IO ()) -> WaiOptions -> (Settings -> Socket -> Application -> IO ()) -> Settings -> Application -> IO ()
- waiMain :: (WaiOptions -> IO ()) -> (WaiOptions -> IO ()) -> Application -> IO ()
- defPutListening :: WaiOptions -> IO ()
- defWaiMain :: Application -> IO ()
Documentation
data GracefulMode Source #
Constructors
| ServeNormally | |
| Serve503 |
data WaiOptions Source #
Constructors
| WaiOptions | |
Fields
| |
Instances
| Options WaiOptions Source # | |
Defined in Network.Wai.Cli Methods | |
runActivated :: (Settings -> Socket -> Application -> IO ()) -> Settings -> Application -> IO () Source #
runGraceful :: GracefulMode -> (Settings -> Application -> IO ()) -> Settings -> Application -> IO () Source #
Arguments
| :: (WaiOptions -> IO ()) | A "before main loop" function |
| -> WaiOptions | Original options |
| -> (Settings -> Socket -> Application -> IO ()) | A function such as |
| -> Settings | |
| -> Application | |
| -> IO () |
Adjusts WaiOptions with an address assigned to a newly created
server socket, uses those to set a "before main loop" function in
Warp Settings, which are then used to run an application.
waiMain :: (WaiOptions -> IO ()) -> (WaiOptions -> IO ()) -> Application -> IO () Source #
defPutListening :: WaiOptions -> IO () Source #
defWaiMain :: Application -> IO () Source #