-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | HTTP cookie parsing and rendering
--   
--   HTTP cookie parsing and rendering
@package cookie
@version 0.4.0.1

module Web.Cookie
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

-- | The default value for this type.
def :: Default a => a
type Cookies = [(ByteString, ByteString)]

-- | Decode the value of a "Cookie" request header into key/value pairs.
parseCookies :: ByteString -> Cookies
renderCookies :: Cookies -> Builder

-- | Textual cookies. Functions assume UTF8 encoding.
type CookiesText = [(Text, Text)]
parseCookiesText :: ByteString -> CookiesText
renderCookiesText :: CookiesText -> Builder
expiresFormat :: String

-- | Format a UTCTime for a cookie.
formatCookieExpires :: UTCTime -> ByteString
parseCookieExpires :: ByteString -> Maybe UTCTime
instance Eq SetCookie
instance Show SetCookie
instance Default SetCookie
