29 HTTPCookie(
const std::string &format,
const URLSpec &url) {
30 parse_set_cookie(format, url);
39 HTTPCookie(
const std::string &name,
const std::string &path,
const std::string &domain) :
57 INLINE
void HTTPCookie::
58 set_name(
const std::string &name) {
66 INLINE
const std::string &HTTPCookie::
74 INLINE
void HTTPCookie::
75 set_value(
const std::string &value) {
83 INLINE
const std::string &HTTPCookie::
91 INLINE
void HTTPCookie::
92 set_domain(
const std::string &domain) {
99 INLINE
const std::string &HTTPCookie::
107 INLINE
void HTTPCookie::
108 set_path(
const std::string &path) {
116 INLINE
const std::string &HTTPCookie::
124 INLINE
void HTTPCookie::
125 set_expires(
const HTTPDate &expires) {
132 INLINE
void HTTPCookie::
140 INLINE
bool HTTPCookie::
141 has_expires()
const {
142 return _expires.is_valid();
150 get_expires()
const {
157 INLINE
void HTTPCookie::
158 set_secure(
bool secure) {
166 INLINE
bool HTTPCookie::
175 INLINE
bool HTTPCookie::
176 is_expired(
const HTTPDate &now)
const {
177 return _expires.is_valid() && _expires < now;
180 INLINE std::ostream &operator << (std::ostream &out,
const HTTPCookie &cookie) {
A container for a URL, e.g.
A container for an HTTP-legal time/date indication.