mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
Added support for a 'Priority' attribute on cookies.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user