-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A fast, light-weight web server for WAI applications. -- -- A fast, light-weight web server for WAI applications. @package warp @version 0.4.2 -- | A fast, light-weight HTTP server handler for WAI. Some random notes (a -- FAQ, if you will): -- --
-- defaultSettings { settingsTimeout = 20 }
--
data Settings
-- | The default settings for the Warp server. See the individual settings
-- for the default value.
defaultSettings :: Settings
-- | Port to listen on. Default value: 3000
settingsPort :: Settings -> Int
-- | Host to bind to, or * for all. Default value: *
settingsHost :: Settings -> String
-- | What to do with exceptions thrown by either the application or server.
-- Default: ignore server-generated exceptions (see
-- InvalidRequest) and print application-generated applications to
-- stderr.
settingsOnException :: Settings -> SomeException -> IO ()
-- | Timeout value in seconds. Default value: 30
settingsTimeout :: Settings -> Int
type Port = Int
data InvalidRequest
NotEnoughLines :: [String] -> InvalidRequest
BadFirstLine :: String -> InvalidRequest
NonHttp :: InvalidRequest
IncompleteHeaders :: InvalidRequest
OverLargeHeader :: InvalidRequest
-- | A timeout manager
data Manager
-- | Call the inner function with a timeout manager.
withManager :: Int -> (Manager -> IO a) -> IO a
parseRequest :: Port -> SockAddr -> Iteratee ByteString IO (Integer, Request)
sendResponse :: Handle -> Request -> Socket -> Response -> IO Bool
registerKillThread :: Manager -> IO Handle
bindPort :: Int -> String -> IO Socket
enumSocket :: Handle -> Int -> Socket -> Enumerator ByteString IO a
pause :: Handle -> IO ()
resume :: Handle -> IO ()
instance Typeable InvalidRequest
instance Show InvalidRequest
instance Eq InvalidRequest
instance Exception InvalidRequest