-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | a sexy Haskell Webserver Interface -- -- Hack: a sexy Haskell Webserver Interface. Hack is a brain-dead port of -- the brilliant Ruby Rack http://rack.rubyforge.org/ webserver -- interface. @package hack @version 2009.4.30 module Hack data RequestMethod OPTIONS :: RequestMethod GET :: RequestMethod HEAD :: RequestMethod POST :: RequestMethod PUT :: RequestMethod DELETE :: RequestMethod TRACE :: RequestMethod CONNECT :: RequestMethod data Hack_UrlScheme HTTP :: Hack_UrlScheme HTTPS :: Hack_UrlScheme type Map = [(String, String)] type Stream = String -> IO () type HackErrors = Stream data Env Env :: RequestMethod -> String -> String -> String -> String -> Int -> Map -> [Int] -> Hack_UrlScheme -> String -> HackErrors -> Bool -> Bool -> Bool -> Map -> Env request_method :: Env -> RequestMethod script_name :: Env -> String path_info :: Env -> String query_string :: Env -> String server_name :: Env -> String server_port :: Env -> Int http :: Env -> Map hack_version :: Env -> [Int] hack_url_scheme :: Env -> Hack_UrlScheme hack_input :: Env -> String hack_errors :: Env -> HackErrors hack_multithread :: Env -> Bool hack_multiprocess :: Env -> Bool hack_run_once :: Env -> Bool custom :: Env -> Map data Response Response :: Int -> Map -> String -> Response status :: Response -> Int headers :: Response -> Map body :: Response -> String type Application = Env -> IO Response type Middleware = Application -> Application type MiddleWare = Middleware instance Show Response instance Show Env instance Show Hack_UrlScheme instance Eq Hack_UrlScheme instance Show RequestMethod instance Read RequestMethod instance Eq RequestMethod instance Default Env instance Default Response instance Default Hack_UrlScheme instance Default RequestMethod instance Show HackErrors