diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-08-27 16:04:36 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-08-27 16:04:36 +0000 |
| commit | 9cdcbf32ff69afc4c2c8f220df90aabed62dafde (patch) | |
| tree | 0388730a58d56f83b829c193f3a44fcc5b98c52e /src/Cookie.h | |
| parent | 58ad225655b27370e0a3ebe5f603ec9890360b90 (diff) | |
2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added CookieStorage class which is based on RFC2109 and manages
cookies
more strictly than CookieBox and CookieBoxFactory class.
* src/CookieStorage.cc
* src/CookieStorage.h
* src/Cookie.cc
* src/Cookie.h
* test/CookieStorageTest.cc
* test/CookieTest.cc
Diffstat (limited to 'src/Cookie.h')
| -rw-r--r-- | src/Cookie.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Cookie.h b/src/Cookie.h index a4529749..eeafb1f8 100644 --- a/src/Cookie.h +++ b/src/Cookie.h @@ -75,7 +75,15 @@ public: bool good() const; - bool match(const std::string& host, const std::string& dir, time_t date, bool secure) const; + bool match(const std::string& requestHost, const std::string& requestPath, + time_t date, bool secure) const; + + bool validate(const std::string& requestHost, + const std::string& requestPath) const; + + bool operator==(const Cookie& cookie) const; + + bool isExpired() const; }; typedef std::deque<Cookie> Cookies; |
