Copyright | (c) Bjorn Bringert 2004-2005 (c) Ian Lynagh 2005 |
---|---|
License | BSD-style |
Maintainer | John Chee <cheecheeo@gmail.com> |
Stability | experimental |
Portability | portable General server side HTTP cookie library. Based on <http://wp.netscape.com/newsref/std/cookie_spec.html> |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
TODO
- Add client side stuff (basically parsing Set-Cookie: value)
- Update for RFC2109 http://www.ietf.org/rfc/rfc2109.txt
Documentation
Contains all information about a cookie set by the server.
Cookie | |
|
Construct a cookie with only name and value set. This client will expire when the browser sessions ends, will only be sent to the server and path which set it and may be sent using any means.
:: String | Cookie name |
-> String | Semicolon separated list of name-value pairs |
-> Maybe String | Cookie value, if found |
Get the value of a cookie from a string on the form
"cookieName1=cookieValue1;...;cookieName2=cookieValue2"
.
This is the format of the Cookie
HTTP header.
:: Cookie | Cookie to delete. The only fields that matter
are |
-> Cookie |
Delete a cookie from the client by setting the cookie expiry date to a date in the past.
showCookie :: Cookie -> String Source
Show a cookie on the format used as the value of the Set-Cookie header.
Gets all the cookies from a Cookie: header value