24 #ifndef _HTTPCOOKIE_H_
25 #define _HTTPCOOKIE_H_ 1
80 const std::string& value);
99 const std::string& value,
101 const std::string& domain,
102 unsigned long maxAge,
103 const std::string& path,
149 {
return ! operator==(cookie); }
179 { fRemoved = removed; }
201 const std::string& domain,
202 const std::string& path,
303 { fComment = comment; }
315 { fDomain = domain; }
325 { fMaxAge = maxAge; }
345 { fSecure = secure; }
353 render(std::ostream& out)
const;
359 std::string fComment;
361 unsigned long fMaxAge;
void setRemoved(bool removed)
Mark this cookie as secure or unsecure.
void setPath(const std::string &path)
Set the path of this cookie.
std::string getName() const
Get the name of this cookie.
Platform and operating system specific macro definitions.
void setDomain(const std::string &domain)
Set the domain of this cookie.
unsigned long getMaxAge() const
Get the lifetime of this cookie, in seconds.
void setValue(const std::string &value)
Set the value of this cookie.
bool isSecure() const
Determine if this is a secure cookie.
bool isRemoved() const
Determine if this is a removed cookie.
void setComment(const std::string &comment)
Set the comment of this cookie.
std::string getDomain() const
Get the domain for which this cookie is valid.
std::string getValue() const
Get the value of this cookie.
Mix-in streamable interface.
std::string getComment() const
Get the comment of this cookie.
Abstract base class for all streamable objects.
void setMaxAge(unsigned long maxAge)
Set the lifetime of this cookie, in seconds.
void setSecure(bool secure)
Mark this cookie as secure or unsecure.
std::string getPath() const
Get the path of this cookie.
void setName(const std::string &name)
Set the name of this cookie.