Added support for a 'Priority' attribute on cookies.

This commit is contained in:
karlr42
2014-03-06 15:20:36 +00:00
parent 9f3abcbef7
commit e060f109fd
2 changed files with 37 additions and 2 deletions

View File

@@ -139,10 +139,16 @@ public:
void setPath(const std::string& path);
/// Sets the path for the cookie.
void setPriority(const std::string& priority);
/// Sets the priority for the cookie.
const std::string& getPath() const;
/// Returns the path for the cookie.
const std::string& getPriority() const;
/// Returns the priority for the cookie.
void setSecure(bool secure);
/// Sets the value of the secure flag for
/// the cookie.
@@ -210,6 +216,7 @@ private:
std::string _comment;
std::string _domain;
std::string _path;
std::string _priority;
bool _secure;
int _maxAge;
bool _httpOnly;
@@ -254,6 +261,11 @@ inline const std::string& HTTPCookie::getPath() const
return _path;
}
inline const std::string& HTTPCookie::getPriority() const
{
return _priority;
}
inline bool HTTPCookie::getSecure() const
{