18 #include "pandabase.h" 36 class EXPCL_PANDAEXPRESS HTTPCookie {
39 INLINE HTTPCookie(
const string &format,
const URLSpec &url);
40 INLINE HTTPCookie(
const string &name,
const string &path,
const string &domain);
43 INLINE
void set_name(
const string &name);
44 INLINE
const string &get_name()
const;
46 INLINE
void set_value(
const string &value);
47 INLINE
const string &get_value()
const;
49 INLINE
void set_domain(
const string &domain);
50 INLINE
const string &get_domain()
const;
52 INLINE
void set_path(
const string &path);
53 INLINE
const string &get_path()
const;
55 INLINE
void set_expires(
const HTTPDate &expires);
56 INLINE
void clear_expires();
57 INLINE
bool has_expires()
const;
60 INLINE
void set_secure(
bool flag);
61 INLINE
bool get_secure()
const;
63 bool operator < (
const HTTPCookie &other)
const;
64 void update_from(
const HTTPCookie &other);
66 bool parse_set_cookie(
const string &format,
const URLSpec &url);
68 bool matches_url(
const URLSpec &url)
const;
70 void output(ostream &out)
const;
73 bool parse_cookie_param(
const string ¶m,
bool first_param);
83 INLINE ostream &operator << (ostream &out,
const HTTPCookie &cookie);
85 #include "httpCookie.I" 87 #endif // HAVE_OPENSSL A container for a URL, e.g.
A container for an HTTP-legal time/date indication.
static HTTPDate now()
Returns an HTTPDate that represents the current time and date.