#include <nawa/connection/Cookie.h>
Structure for creating Cookie objects. Content can be set by using a constructor.
Definition at line 36 of file Cookie.h.
◆ SameSite
◆ ~Cookie()
virtual nawa::Cookie::~Cookie |
( |
| ) |
|
|
virtual |
◆ Cookie() [1/4]
◆ Cookie() [2/4]
nawa::Cookie::Cookie |
( |
Cookie const & |
other | ) |
|
◆ Cookie() [3/4]
nawa::Cookie::Cookie |
( |
Cookie && |
other | ) |
|
|
noexcept |
◆ Cookie() [4/4]
Cookie::Cookie |
( |
std::string |
c | ) |
|
|
explicit |
Create a cookie and directly set the content.
- Parameters
-
Definition at line 52 of file Cookie.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ content() [1/3]
std::string & nawa::Cookie::content |
( |
| ) |
|
|
noexcept |
Content of the cookie.
- Returns
- Reference to element.
◆ content() [2/3]
std::string const & nawa::Cookie::content |
( |
| ) |
const |
|
noexcept |
◆ content() [3/3]
Cookie & nawa::Cookie::content |
( |
std::string |
value | ) |
|
|
noexcept |
◆ expires() [1/3]
std::optional< time_t > & nawa::Cookie::expires |
( |
| ) |
|
|
noexcept |
Set (optional) expiry date as time_t structure. Session cookies usually do not have an expiry date, meaning that they are deleted when the browser is closed.
- Returns
- Reference to element.
◆ expires() [2/3]
std::optional< time_t > const & nawa::Cookie::expires |
( |
| ) |
const |
|
noexcept |
◆ expires() [3/3]
Cookie & nawa::Cookie::expires |
( |
std::optional< time_t > |
value | ) |
|
|
noexcept |
◆ maxAge() [1/3]
std::optional< unsigned long > & nawa::Cookie::maxAge |
( |
| ) |
|
|
noexcept |
Set (optional) Max-Age attribute.
- Returns
- Reference to element.
◆ maxAge() [2/3]
std::optional< unsigned long > const & nawa::Cookie::maxAge |
( |
| ) |
const |
|
noexcept |
◆ maxAge() [3/3]
Cookie & nawa::Cookie::maxAge |
( |
std::optional< unsigned long > |
value | ) |
|
|
noexcept |
◆ domain() [1/3]
std::optional< std::string > & nawa::Cookie::domain |
( |
| ) |
|
|
noexcept |
Set (optional) Domain attribute.
- Returns
- Reference to element.
◆ domain() [2/3]
std::optional< std::string > const & nawa::Cookie::domain |
( |
| ) |
const |
|
noexcept |
◆ domain() [3/3]
Cookie & nawa::Cookie::domain |
( |
std::optional< std::string > |
value | ) |
|
|
noexcept |
◆ path() [1/3]
std::optional< std::string > & nawa::Cookie::path |
( |
| ) |
|
|
noexcept |
Set (optional) Path attribute.
- Returns
- Reference to element.
◆ path() [2/3]
std::optional< std::string > const & nawa::Cookie::path |
( |
| ) |
const |
|
noexcept |
◆ path() [3/3]
Cookie & nawa::Cookie::path |
( |
std::optional< std::string > |
value | ) |
|
|
noexcept |
◆ secure() [1/3]
bool & nawa::Cookie::secure |
( |
| ) |
|
|
noexcept |
Set Secure attribute.
- Returns
- Reference to element.
◆ secure() [2/3]
bool nawa::Cookie::secure |
( |
| ) |
const |
|
noexcept |
◆ secure() [3/3]
Cookie & nawa::Cookie::secure |
( |
bool |
value | ) |
|
|
noexcept |
◆ httpOnly() [1/3]
bool & nawa::Cookie::httpOnly |
( |
| ) |
|
|
noexcept |
Set HttpOnly attribute.
- Returns
- Reference to element.
◆ httpOnly() [2/3]
bool nawa::Cookie::httpOnly |
( |
| ) |
const |
|
noexcept |
◆ httpOnly() [3/3]
Cookie & nawa::Cookie::httpOnly |
( |
bool |
value | ) |
|
|
noexcept |
◆ sameSite() [1/3]
Set SameSite attribute.
- Returns
- Reference to element.
◆ sameSite() [2/3]
SameSite nawa::Cookie::sameSite |
( |
| ) |
const |
|
noexcept |
◆ sameSite() [3/3]
The documentation for this class was generated from the following files: