-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | a sexy Haskell Webserver Interface -- -- a sexy Haskell Webserver Interface @package hack @version 2009.4.22 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)] data Env Env :: RequestMethod -> String -> String -> String -> String -> Int -> Map -> [Int] -> Hack_UrlScheme -> String -> String -> 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 -> String 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 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 module Hack.Handler.Kibro run :: Application -> IO () module Hack.Utils not_found :: String -> IO Response empty_app :: Application use :: [MiddleWare] -> MiddleWare not_found_app :: Application module Hack.Contrib.SimpleRouter type RoutePath = (String, Application) route :: [RoutePath] -> MiddleWare module Hack.Contrib.RawRouter type RoutePath = (String, Application) route :: [RoutePath] -> MiddleWare module Hack.Contrib.ContentType content_type :: String -> MiddleWare