For more information: http:www.ietf.orgrfcrfc2109.txt
- data Cookie = Cookie String String (Maybe String) (Maybe String) Bool (Maybe String) (Maybe Int) (Maybe String) (Maybe String) [Int] Bool Int
- empty :: Cookie
- cookie :: String :<->: Cookie
- setCookie :: String :<->: Cookie
- name :: Cookie :-> String
- value :: Cookie :-> String
- comment :: Cookie :-> Maybe String
- commentURL :: Cookie :-> Maybe String
- discard :: Cookie :-> Bool
- domain :: Cookie :-> Maybe String
- maxAge :: Cookie :-> Maybe Int
- expires :: Cookie :-> Maybe String
- path :: Cookie :-> Maybe String
- port :: Cookie :-> [Int]
- secure :: Cookie :-> Bool
- version :: Cookie :-> Int
- data Cookies
- unCookies :: Cookies :-> Map String Cookie
- cookies :: String :<->: Cookies
- setCookies :: String :<->: Cookies
- pickCookie :: String -> Cookies :-> Maybe Cookie
- fromList :: [Cookie] -> Cookies
- toList :: Cookies -> [Cookie]
Cookie datatype.
The Cookie
data type containg one key/value pair with all the
(potentially optional) meta-data.
cookie :: String :<->: CookieSource
Cookie parser and pretty printer as a lens. To be used in combination with the Cookie header field.
setCookie :: String :<->: CookieSource
Cookie parser and pretty printer as a lens. To be used in combination with the Set-Cookie header field.
Accessing cookies.
Collection of cookies.
A collection of multiple cookies. These can all be set in one single HTTP Set-Cookie header field.
setCookies :: String :<->: CookiesSource
Cookies parser and pretty printer as a lens.