32 class EXPCL_PANDA_DOWNLOADER HTTPCookie {
35 INLINE
explicit HTTPCookie(
const std::string &format,
const URLSpec &url);
36 INLINE
explicit HTTPCookie(
const std::string &name,
const std::string &path,
37 const std::string &domain);
40 INLINE
void set_name(
const std::string &name);
41 INLINE
const std::string &get_name()
const;
43 INLINE
void set_value(
const std::string &value);
44 INLINE
const std::string &get_value()
const;
46 INLINE
void set_domain(
const std::string &domain);
47 INLINE
const std::string &get_domain()
const;
49 INLINE
void set_path(
const std::string &path);
50 INLINE
const std::string &get_path()
const;
52 INLINE
void set_expires(
const HTTPDate &expires);
53 INLINE
void clear_expires();
54 INLINE
bool has_expires()
const;
57 INLINE
void set_secure(
bool flag);
58 INLINE
bool get_secure()
const;
60 bool operator < (
const HTTPCookie &other)
const;
61 void update_from(
const HTTPCookie &other);
63 bool parse_set_cookie(
const std::string &format,
const URLSpec &url);
65 bool matches_url(
const URLSpec &url)
const;
67 void output(std::ostream &out)
const;
70 bool parse_cookie_param(
const std::string ¶m,
bool first_param);
80 INLINE std::ostream &operator << (std::ostream &out,
const HTTPCookie &cookie);
84 #endif // HAVE_OPENSSL A container for a URL, e.g.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A container for an HTTP-legal time/date indication.
static HTTPDate now()
Returns an HTTPDate that represents the current time and date.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.