haskyapi-0.0.0.2: HTTP server
Web.Haskyapi.Header
parse :: [String] -> Header Source #
data RqLine Source #
Constructors
Fields
Instances
Methods
(==) :: RqLine -> RqLine -> Bool #
(/=) :: RqLine -> RqLine -> Bool #
showsPrec :: Int -> RqLine -> ShowS #
show :: RqLine -> String #
showList :: [RqLine] -> ShowS #
data Header Source #
(==) :: Header -> Header -> Bool #
(/=) :: Header -> Header -> Bool #
showsPrec :: Int -> Header -> ShowS #
show :: Header -> String #
showList :: [Header] -> ShowS #
pprint :: Header -> IO () Source #
data Method Source #
(==) :: Method -> Method -> Bool #
(/=) :: Method -> Method -> Bool #
showsPrec :: Int -> Method -> ShowS #
show :: Method -> String #
showList :: [Method] -> ShowS #
type Query = [(String, String)] Source #
type Body = String Source #
type Endpoint = String Source #
type Api = (Method, Endpoint, ApiFunc, ContentType) Source #
type ApiFunc = Query -> Body -> IO String Source #
data ContentType Source #
(==) :: ContentType -> ContentType -> Bool #
(/=) :: ContentType -> ContentType -> Bool #
showsPrec :: Int -> ContentType -> ShowS #
show :: ContentType -> String #
showList :: [ContentType] -> ShowS #
toCType :: String -> ContentType Source #
type Domain = String Source #
type SubDomain = [(String, String)] Source #