|
Wexus2 0.20
|
#include <Cookies.h>
Classes | |
| class | CookieNotFoundException |
Public Member Functions | |
| Cookies (wexus::HTTPRequest *req, wexus::HTTPReply *rep) | |
| bool | contains (const QString &cookieName) |
| const QVariant & | operator[] (const QString &cookieName) const |
| QVariant & | operator[] (const QString &cookieName) |
This is collection of cookies, string values mapped by string keys. Internally, it uses the ClientCookies and ServerCookies of HTTPRequest and HTTPReply.
| wexus::Cookies::Cookies | ( | wexus::HTTPRequest * | req, |
| wexus::HTTPReply * | rep | ||
| ) |
Constructor TODO future, add Site so the domain/expires/path can be set.
| bool wexus::Cookies::contains | ( | const QString & | cookieName | ) |
Does this have a cookie with the given name?
| QVariant& wexus::Cookies::operator[] | ( | const QString & | cookieName | ) |
Gets a cookie. Never fails, as it'll create the cookie if need be.
| const QVariant& wexus::Cookies::operator[] | ( | const QString & | cookieName | ) | const |
Gets a cookie. Throws CookieNotFoundException on not found.