mohws-0.2.0.1: Modular Haskell Web ServerSource codeContentsIndex
Network.MoHWS.HTTP.Header
Contents
Header parsing
Header manipulation
Constructing headers
Getting values of specific headers
Synopsis
data Group
group :: [T] -> Group
ungroup :: Group -> [T]
setGroup :: HasHeaders x => x -> Group -> x
getGroup :: HasHeaders x => x -> Group
list :: HasHeaders x => x -> [T]
modifyMany :: HasHeaders x => ([T] -> [T]) -> x -> x
type T = Header
Header (Header)
make :: Name -> String -> T
getName :: T -> Name
getValue :: T -> String
name :: T T Name
value :: T T String
type Name = HeaderName
HeaderName (HdrCacheControl, HdrConnection, HdrDate, HdrPragma, HdrTransferEncoding, HdrUpgrade, HdrVia, HdrAccept, HdrAcceptCharset, HdrAcceptEncoding, HdrAcceptLanguage, HdrAuthorization, HdrCookie, HdrExpect, HdrFrom, HdrHost, HdrIfModifiedSince, HdrIfMatch, HdrIfNoneMatch, HdrIfRange, HdrIfUnmodifiedSince, HdrMaxForwards, HdrProxyAuthorization, HdrRange, HdrReferer, HdrUserAgent, HdrAge, HdrLocation, HdrProxyAuthenticate, HdrPublic, HdrRetryAfter, HdrServer, HdrSetCookie, HdrTE, HdrTrailer, HdrVary, HdrWarning, HdrWWWAuthenticate, HdrAllow, HdrContentBase, HdrContentEncoding, HdrContentLanguage, HdrContentLength, HdrContentLocation, HdrContentMD5, HdrContentRange, HdrContentType, HdrETag, HdrExpires, HdrLastModified, HdrContentTransferEncoding, HdrCustom)
HasHeaders (getHeaders, setHeaders)
pGroup :: Parser Group
makeName :: String -> Name
insert :: HasHeaders a => Name -> String -> a -> a
insertIfMissing :: HasHeaders a => Name -> String -> a -> a
replace :: HasHeaders a => Name -> String -> a -> a
insertMany :: HasHeaders a => [T] -> a -> a
lookupMany :: HasHeaders a => Name -> a -> [String]
lookup :: HasHeaders a => Name -> a -> Maybe String
makeContentLength :: Integer -> T
makeContentType :: String -> T
makeLocation :: URI -> T
makeLastModified :: ClockTime -> T
data TransferCoding
= ChunkedTransferCoding
| GzipTransferCoding
| CompressTransferCoding
| DeflateTransferCoding
makeTransferCoding :: TransferCoding -> T
getContentType :: HasHeaders a => a -> Maybe String
getContentLength :: HasHeaders a => a -> Maybe Integer
Documentation
data Group Source
show/hide Instances
group :: [T] -> GroupSource
ungroup :: Group -> [T]Source
setGroup :: HasHeaders x => x -> Group -> xSource
getGroup :: HasHeaders x => x -> GroupSource
list :: HasHeaders x => x -> [T]Source
modifyMany :: HasHeaders x => ([T] -> [T]) -> x -> xSource
type T = HeaderSource
Header (Header)
make :: Name -> String -> TSource
getName :: T -> NameSource
getValue :: T -> StringSource
name :: T T NameSource
value :: T T StringSource
type Name = HeaderNameSource
HeaderName (HdrCacheControl, HdrConnection, HdrDate, HdrPragma, HdrTransferEncoding, HdrUpgrade, HdrVia, HdrAccept, HdrAcceptCharset, HdrAcceptEncoding, HdrAcceptLanguage, HdrAuthorization, HdrCookie, HdrExpect, HdrFrom, HdrHost, HdrIfModifiedSince, HdrIfMatch, HdrIfNoneMatch, HdrIfRange, HdrIfUnmodifiedSince, HdrMaxForwards, HdrProxyAuthorization, HdrRange, HdrReferer, HdrUserAgent, HdrAge, HdrLocation, HdrProxyAuthenticate, HdrPublic, HdrRetryAfter, HdrServer, HdrSetCookie, HdrTE, HdrTrailer, HdrVary, HdrWarning, HdrWWWAuthenticate, HdrAllow, HdrContentBase, HdrContentEncoding, HdrContentLanguage, HdrContentLength, HdrContentLocation, HdrContentMD5, HdrContentRange, HdrContentType, HdrETag, HdrExpires, HdrLastModified, HdrContentTransferEncoding, HdrCustom)
HasHeaders (getHeaders, setHeaders)
Header parsing
pGroup :: Parser GroupSource
makeName :: String -> NameSource
Header manipulation
insert :: HasHeaders a => Name -> String -> a -> aSource
insertIfMissing :: HasHeaders a => Name -> String -> a -> aSource
replace :: HasHeaders a => Name -> String -> a -> aSource
insertMany :: HasHeaders a => [T] -> a -> aSource
lookupMany :: HasHeaders a => Name -> a -> [String]Source
lookup :: HasHeaders a => Name -> a -> Maybe StringSource
Constructing headers
makeContentLength :: Integer -> TSource
makeContentType :: String -> TSource
makeLocation :: URI -> TSource
makeLastModified :: ClockTime -> TSource
data TransferCoding Source
Constructors
ChunkedTransferCoding
GzipTransferCoding
CompressTransferCoding
DeflateTransferCoding
show/hide Instances
makeTransferCoding :: TransferCoding -> TSource
Getting values of specific headers
getContentType :: HasHeaders a => a -> Maybe StringSource
getContentLength :: HasHeaders a => a -> Maybe IntegerSource
Produced by Haddock version 2.4.2