-- 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.3.2
-- | A fast, light-weight HTTP server handler for WAI. Some random notes (a
-- FAQ, if you will):
--
--
-- - When a ResponseFile indicates a file which does not exist,
-- an exception is thrown. This will close the connection to the client
-- as well. You should handle file existance checks at the application
-- level.
--
module Network.Wai.Handler.Warp
-- | Run an Application on the given port, ignoring all exceptions.
run :: Port -> Application -> IO ()
-- | Run an Application on the given port, with the given exception
-- handler. Please note that you will also receive InvalidRequest
-- exceptions.
runEx :: (SomeException -> IO ()) -> Port -> Application -> IO ()
-- | Runs a server, listening on the given socket. The user is responsible
-- for closing the socket after runWithSocket completes. You
-- must also supply a Port argument for use in the
-- serverPort record; however, this field is only used for
-- informational purposes. If you are in fact listening on a non-TCP
-- socket, this can be a ficticious value.
serveConnections :: (SomeException -> IO ()) -> Port -> Application -> Socket -> IO ()
runSettings :: Settings -> Application -> IO ()
data Settings
defaultSettings :: Settings
settingsPort :: Settings -> Int
settingsOnException :: Settings -> SomeException -> IO ()
-- | seconds
settingsTimeout :: Settings -> Int
type Port = Int
data InvalidRequest
NotEnoughLines :: [String] -> InvalidRequest
BadFirstLine :: String -> InvalidRequest
NonHttp :: InvalidRequest
TooManyHeaders :: InvalidRequest
IncompleteHeaders :: InvalidRequest
OverLargeHeader :: InvalidRequest
SocketTimeout :: InvalidRequest
sendResponse :: Handle -> Request -> HttpVersion -> Socket -> Response -> IO Bool
parseRequest :: Port -> SockAddr -> Iteratee ByteString IO (Enumeratee ByteString ByteString IO a, Request)
instance Typeable InvalidRequest
instance Show InvalidRequest
instance Eq InvalidRequest
instance Exception InvalidRequest