Safe Haskell | None |
---|---|
Language | Haskell98 |
- empty_app :: Application
- use :: [Middleware] -> Middleware
- put :: Eq a => a -> b -> [(a, b)] -> [(a, b)]
- get :: Eq a => a -> [(a, b)] -> Maybe b
- bytesize :: ByteString -> Int
- show_bytestring :: Show a => a -> ByteString
- map_both :: (a -> b) -> [(a, a)] -> [(b, b)]
- as_string :: (String -> String) -> ByteString -> ByteString
- dummy_middleware :: Middleware
- dummy_app :: Application
- escape_html :: String -> String
- escape_uri :: String -> String
- unescape_uri :: String -> String
- show_status_message :: Int -> Maybe ByteString
- httpdate :: UTCTime -> String
- request_method :: Env -> RequestMethod
- script_name :: Env -> ByteString
- path_info :: Env -> ByteString
- query_string :: Env -> ByteString
- server_name :: Env -> ByteString
- server_port :: Env -> Int
- hack_version :: Env -> (Int, Int, Int)
- hack_url_scheme :: Env -> HackUrlScheme
- hack_input :: Env -> ByteString
- hack_errors :: Env -> HackErrors
- hack_headers :: Env -> [(ByteString, ByteString)]
Documentation
use :: [Middleware] -> Middleware Source
usage: app.use [content_type, cache]
bytesize :: ByteString -> Int Source
show_bytestring :: Show a => a -> ByteString Source
as_string :: (String -> String) -> ByteString -> ByteString Source
escape_html :: String -> String Source
escape_uri :: String -> String Source
unescape_uri :: String -> String Source
request_method :: Env -> RequestMethod Source
script_name :: Env -> ByteString Source
path_info :: Env -> ByteString Source
query_string :: Env -> ByteString Source
server_name :: Env -> ByteString Source
server_port :: Env -> Int Source
hack_input :: Env -> ByteString Source
hack_errors :: Env -> HackErrors Source
hack_headers :: Env -> [(ByteString, ByteString)] Source