5#ifndef MOLYBDEN_COOKIE_HPP
6#define MOLYBDEN_COOKIE_HPP
12#include "molybden/time/timestamp.hpp"
16using time = std::chrono::system_clock;
52 std::string
name =
"",
53 std::string
value =
"",
54 std::string
path =
"",
57 Timestamp
creation_time = time::now().time_since_epoch().count(),
An HTTP cookie.
Definition cookie.hpp:49
Timestamp creation_time
The cookie creation time since UNIX epoch.
Definition cookie.hpp:106
bool is_http_only
Indicates if the cookie is considered HTTP only.
Definition cookie.hpp:97
std::string path
The path that must exist in the URL of a request in order to send this cookie to the server.
Definition cookie.hpp:84
std::string value
The value of this cookie or an empty string if the cookie value is not specified.
Definition cookie.hpp:78
std::string name
The name of this cookie.
Definition cookie.hpp:72
Timestamp expiration_time
The cookie expiration time since UNIX epoch.
Definition cookie.hpp:116
std::string domain
The domain name of this cookie.
Definition cookie.hpp:67
SameSite same_site
The SameSite cookie attribute value.
Definition cookie.hpp:121
bool is_secure
Indicates if the cookie is restricted to a secure protocol (HTTPS or WSS) or false if it can be sent ...
Definition cookie.hpp:90