-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | a Haskell Webserver Interface (V2) -- -- Hack2: a Haskell Webserver Interface (V2) @package hack2 @version 2011.6.19 module Hack2 type Application = Env -> IO Response type Middleware = Application -> Application data RequestMethod OPTIONS :: RequestMethod GET :: RequestMethod HEAD :: RequestMethod POST :: RequestMethod PUT :: RequestMethod DELETE :: RequestMethod TRACE :: RequestMethod CONNECT :: RequestMethod data HackUrlScheme HTTP :: HackUrlScheme HTTPS :: HackUrlScheme newtype HackErrors HackErrors :: (ByteString -> IO ()) -> HackErrors unHackErrors :: HackErrors -> ByteString -> IO () newtype HackEnumerator HackEnumerator :: (forall a. Enumerator ByteString IO a) -> HackEnumerator unHackEnumerator :: HackEnumerator -> (forall a. Enumerator ByteString IO a) data Env Env :: RequestMethod -> ByteString -> ByteString -> ByteString -> ByteString -> Int -> [(ByteString, ByteString)] -> (Int, Int, Int) -> HackUrlScheme -> HackEnumerator -> HackErrors -> [(ByteString, ByteString)] -> Env requestMethod :: Env -> RequestMethod scriptName :: Env -> ByteString pathInfo :: Env -> ByteString queryString :: Env -> ByteString serverName :: Env -> ByteString serverPort :: Env -> Int httpHeaders :: Env -> [(ByteString, ByteString)] hackVersion :: Env -> (Int, Int, Int) hackUrlScheme :: Env -> HackUrlScheme hackInput :: Env -> HackEnumerator hackErrors :: Env -> HackErrors hackHeaders :: Env -> [(ByteString, ByteString)] data Response Response :: Int -> [(ByteString, ByteString)] -> HackEnumerator -> Response status :: Response -> Int headers :: Response -> [(ByteString, ByteString)] body :: Response -> HackEnumerator instance Show RequestMethod instance Read RequestMethod instance Eq RequestMethod instance Show HackUrlScheme instance Read HackUrlScheme instance Eq HackUrlScheme instance Show Env instance Show Response instance Default Env instance Default Response instance Default HackUrlScheme instance Default RequestMethod instance Default HackEnumerator instance Show HackEnumerator instance Eq HackErrors instance Default HackErrors instance Show HackErrors