-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Command line runner for Wai apps (using Warp) with TLS, CGI, socket activation & graceful shutdown
--
-- Command line runner for Wai apps (using Warp) with support for UNIX
-- domain sockets, TLS (can be turned off with a cabal flag to avoid
-- compiling the TLS library), CGI, socket activation
-- (systemd-compatible, but see https://github.com/myfreeweb/soad
-- for a more interesting (and not linux-only) thing than what systemd
-- does), and graceful shutdown (on TERM signal).
@package wai-cli
@version 0.2.1
module Network.Wai.Cli
data GracefulMode
ServeNormally :: GracefulMode
Serve503 :: GracefulMode
data WaiOptions
WaiOptions :: Int -> String -> String -> String -> String -> String -> String -> Maybe Bool -> WaiOptions
[wHttpPort] :: WaiOptions -> Int
[wHttpHost] :: WaiOptions -> String
[wUnixSock] :: WaiOptions -> String
[wProtocol] :: WaiOptions -> String
[wTlsKeyFile] :: WaiOptions -> String
[wTlsCertFile] :: WaiOptions -> String
[wGracefulMode] :: WaiOptions -> String
[wDevlogging] :: WaiOptions -> Maybe Bool
runActivated :: (Settings -> Socket -> Application -> IO ()) -> Settings -> Application -> IO ()
runGraceful :: GracefulMode -> (Settings -> Application -> IO ()) -> 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.
runWarp :: (WaiOptions -> IO ()) -> WaiOptions -> (Settings -> Socket -> Application -> IO ()) -> Settings -> Application -> IO ()
waiMain :: (WaiOptions -> IO ()) -> (WaiOptions -> IO ()) -> Application -> IO ()
defPutListening :: WaiOptions -> IO ()
defWaiMain :: Application -> IO ()
instance Options.Options Network.Wai.Cli.WaiOptions