A cookie sent from an HTTP server to be stored on the client and returned when the path and/or domain matches.
More...
|
| __init__ () |
| Constructs an empty cookie. More...
|
|
| __init__ (const HTTPCookie) |
|
| __init__ (str format, const URLSpec url) |
| Constructs a cookie according to the indicated string, presumably the tag of a Set-Cookie header. More...
|
|
| __init__ (str name, str path, str domain) |
| Constructs a cookie with the indicated name, path, and domain values, but no other data. More...
|
|
| clearExpires () |
| Removes the expiration date on the cookie. More...
|
|
str | getDomain () |
|
HTTPDate | getExpires () |
| Returns the expiration date of the cookie if it is set, or an invalid date if it is not. More...
|
|
str | getName () |
| Returns the name of the cookie. More...
|
|
str | getPath () |
| Returns the prefix of the URL paths on the server for which this cookie will be sent. More...
|
|
bool | getSecure () |
| Returns true if the server has indicated this is a "secure" cookie which should only be sent over an HTTPS channel. More...
|
|
str | getValue () |
| Returns the value of the cookie. More...
|
|
bool | hasExpires () |
| Returns true if the cookie has an expiration date, false otherwise. More...
|
|
bool | isExpired (const HTTPDate now) |
| Returns true if the cookie's expiration date is before the indicated date, false otherwise. More...
|
|
bool | matchesUrl (const URLSpec url) |
| Returns true if the cookie is appropriate to send with the indicated URL request, false otherwise. More...
|
|
bool | operator< (const HTTPCookie other) |
|
| output (Ostream out) |
|
bool | parseSetCookie (str format, const URLSpec url) |
| Separates out the parameter/value pairs of the Set-Cookie header and assigns the values of the cookie appropriate. More...
|
|
| setDomain (str domain) |
|
| setExpires (const HTTPDate expires) |
|
| setName (str name) |
|
| setPath (str path) |
|
| setSecure (bool flag) |
|
| setValue (str value) |
|
| updateFrom (const HTTPCookie other) |
| Assuming the operator < method, above, has already evaluated these two cookies as equal, then assign the remaining values (value, expiration date, secure flag) from the indicated cookie. More...
|
|
A cookie sent from an HTTP server to be stored on the client and returned when the path and/or domain matches.
Assuming the operator < method, above, has already evaluated these two cookies as equal, then assign the remaining values (value, expiration date, secure flag) from the indicated cookie.
This is guaranteed not to change the ordering of the cookie in a set, and so can be used to update an existing cookie within a set with new values.