Hack.Contrib.Utils
- empty_app :: Application
- use :: [Middleware] -> Middleware
- put :: String -> String -> [(String, String)] -> [(String, String)]
- get :: String -> [(String, String)] -> Maybe String
- bytesize :: ByteString -> Int
- dummy_middleware :: Middleware
- dummy_app :: Application
- escape_html :: String -> String
- escape_uri :: String -> String
- unescape_uri :: String -> String
- show_status_message :: Int -> Maybe String
- now :: IO UTCTime
- httpdate :: UTCTime -> String
- format_time :: String -> UTCTime -> String
- request_method :: Env -> RequestMethod
- script_name :: Env -> String
- path_info :: Env -> String
- query_string :: Env -> String
- server_name :: Env -> String
- server_port :: Env -> Int
- hack_version :: Env -> [Int]
- hack_url_scheme :: Env -> Hack_UrlScheme
- hack_input :: Env -> ByteString
- hack_errors :: Env -> HackErrors
- custom :: Env -> [(String, String)]
- remote_host :: Env -> String
Documentation
use :: [Middleware] -> MiddlewareSource
usage: app.use [content_type, cache]
bytesize :: ByteString -> IntSource
escape_html :: String -> StringSource
escape_uri :: String -> StringSource
unescape_uri :: String -> StringSource
format_time :: String -> UTCTime -> StringSource
script_name :: Env -> StringSource
query_string :: Env -> StringSource
server_name :: Env -> StringSource
server_port :: Env -> IntSource
hack_version :: Env -> [Int]Source
hack_input :: Env -> ByteStringSource
hack_errors :: Env -> HackErrorsSource
remote_host :: Env -> StringSource