Safe Haskell | None |
---|
- data SetCookie
- setCookieName :: SetCookie -> ByteString
- setCookieValue :: SetCookie -> ByteString
- setCookiePath :: SetCookie -> Maybe ByteString
- setCookieExpires :: SetCookie -> Maybe UTCTime
- setCookieMaxAge :: SetCookie -> Maybe DiffTime
- setCookieDomain :: SetCookie -> Maybe ByteString
- setCookieHttpOnly :: SetCookie -> Bool
- setCookieSecure :: SetCookie -> Bool
- parseSetCookie :: ByteString -> SetCookie
- renderSetCookie :: SetCookie -> Builder
- def :: Default a => a
- type Cookies = [(ByteString, ByteString)]
- parseCookies :: ByteString -> Cookies
- renderCookies :: Cookies -> Builder
- type CookiesText = [(Text, Text)]
- parseCookiesText :: ByteString -> CookiesText
- renderCookiesText :: CookiesText -> Builder
- expiresFormat :: String
- formatCookieExpires :: UTCTime -> ByteString
- parseCookieExpires :: ByteString -> Maybe UTCTime
Server to client
Data type
Functions
Client to server
type Cookies = [(ByteString, ByteString)]Source
parseCookies :: ByteString -> CookiesSource
Decode the value of a "Cookie" request header into key/value pairs.
UTF8 Version
type CookiesText = [(Text, Text)]Source
Textual cookies. Functions assume UTF8 encoding.
Expires field
formatCookieExpires :: UTCTime -> ByteStringSource
Format a UTCTime
for a cookie.