5#ifndef MOLYBDEN_COOKIE_HPP
6#define MOLYBDEN_COOKIE_HPP
11#include "molybden/time/timestamp.hpp"
15using time = std::chrono::system_clock;
51 std::string
name =
"",
52 std::string
value =
"",
53 std::string
path =
"/",
56 Timestamp
creation_time = time::now().time_since_epoch().count(),
An HTTP cookie.
Definition cookie.hpp:48
Timestamp creation_time
The cookie creation time since UNIX epoch.
Definition cookie.hpp:105
bool is_http_only
Indicates if the cookie is considered HTTP only.
Definition cookie.hpp:96
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:83
std::string value
The value of this cookie or an empty string if the cookie value is not specified.
Definition cookie.hpp:77
std::string name
The name of this cookie.
Definition cookie.hpp:71
Timestamp expiration_time
The cookie expiration time since UNIX epoch.
Definition cookie.hpp:115
std::string domain
The domain name of this cookie.
Definition cookie.hpp:66
SameSite same_site
The SameSite cookie attribute value.
Definition cookie.hpp:120
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:89