36 HTTPCookie(
const string &format,
const URLSpec &url) {
37 parse_set_cookie(format, url);
49 HTTPCookie(
const string &name,
const string &path,
const string &domain) :
71 INLINE
void HTTPCookie::
72 set_name(
const string &name) {
82 INLINE
const string &HTTPCookie::
92 INLINE
void HTTPCookie::
93 set_value(
const string &value) {
104 INLINE
const string &HTTPCookie::
114 INLINE
void HTTPCookie::
115 set_domain(
const string &domain) {
124 INLINE
const string &HTTPCookie::
134 INLINE
void HTTPCookie::
135 set_path(
const string &path) {
145 INLINE
const string &HTTPCookie::
155 INLINE
void HTTPCookie::
156 set_expires(
const HTTPDate &expires) {
165 INLINE
void HTTPCookie::
176 INLINE
bool HTTPCookie::
177 has_expires()
const {
178 return _expires.is_valid();
188 get_expires()
const {
197 INLINE
void HTTPCookie::
198 set_secure(
bool secure) {
209 INLINE
bool HTTPCookie::
220 INLINE
bool HTTPCookie::
221 is_expired(
const HTTPDate &now)
const {
222 return _expires.is_valid() && _expires < now;
225 INLINE ostream &operator << (ostream &out,
const HTTPCookie &cookie) {
A container for a URL, e.g.
A container for an HTTP-legal time/date indication.