|
| | Cookie (std::string key, std::string value) |
| | Constructor.
|
| void | setExpiresDate (const trantor::Date &date) |
| | Set the Expires Date.
|
|
void | setHttpOnly (bool only) |
| | Set if the cookie is HTTP only.
|
|
void | setSecure (bool secure) |
| | Set if the cookie is secure.
|
|
void | setDomain (const std::string &domain) |
| | Set the domain of the cookie.
|
|
void | setDomain (std::string &&domain) |
| | Set the domain of the cookie.
|
|
void | setPath (const std::string &path) |
| | Set the path of the cookie.
|
|
void | setPath (std::string &&path) |
| | Set the path of the cookie.
|
|
void | setKey (const std::string &key) |
| | Set the key of the cookie.
|
|
void | setKey (std::string &&key) |
| | Set the key of the cookie.
|
|
void | setValue (const std::string &value) |
| | Set the value of the cookie.
|
|
void | setValue (std::string &&value) |
| | Set the value of the cookie.
|
|
void | setMaxAge (int value) |
| | Set the max-age of the cookie.
|
|
void | setSameSite (SameSite sameSite) |
| | Set the same site of the cookie.
|
|
void | setPartitioned (bool partitioned) |
| | Set the partitioned status of the cookie.
|
|
std::string | cookieString () const |
| | Get the string value of the cookie.
|
|
std::string | getCookieString () const |
| | Get the string value of the cookie.
|
|
const trantor::Date & | expiresDate () const |
| | Get the expiration date of the cookie.
|
|
const trantor::Date & | getExpiresDate () const |
| | Get the expiration date of the cookie.
|
|
const std::string & | domain () const |
| | Get the domain of the cookie.
|
|
const std::string & | getDomain () const |
| | Get the domain of the cookie.
|
|
const std::string & | path () const |
| | Get the path of the cookie.
|
|
const std::string & | getPath () const |
| | Get the path of the cookie.
|
|
const std::string & | key () const |
| | Get the keyword of the cookie.
|
|
const std::string & | getKey () const |
| | Get the keyword of the cookie.
|
|
const std::string & | value () const |
| | Get the value of the cookie.
|
|
const std::string & | getValue () const |
| | Get the value of the cookie.
|
| | operator bool () const |
| | Check if the cookie is empty.
|
| bool | isHttpOnly () const |
| | Check if the cookie is HTTP only.
|
| bool | isSecure () const |
| | Check if the cookie is secure.
|
| bool | isPartitioned () const |
| | Check if the cookie is partitioned.
|
|
std::optional< int > | maxAge () const |
| | Get the max-age of the cookie.
|
|
std::optional< int > | getMaxAge () const |
| | Get the max-age of the cookie.
|
|
SameSite | sameSite () const |
| | Get the same site of the cookie.
|
|
SameSite | getSameSite () const |
| | Get the same site of the cookie.
|
this class represents a cookie entity.