Kurlyk
Loading...
Searching...
No Matches
Cookie.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef _KURLYK_TYPES_COOKIE_HPP_INCLUDED
3#define _KURLYK_TYPES_COOKIE_HPP_INCLUDED
4
7
8namespace kurlyk {
9
12 class Cookie {
13 public:
14 std::string name;
15 std::string value;
16 std::string path;
17 uint64_t expiration_date = 0;
18
20 Cookie() = default;
21
27 Cookie(const std::string& name, const std::string& value, const std::string& path = std::string(), uint64_t expiration_date = 0)
29 };
30
31}; // namespace kurlyk
32
33#endif // _KURLYK_TYPES_COOKIE_HPP_INCLUDED
std::string name
The name of the cookie.
Definition Cookie.hpp:14
std::string value
The value of the cookie.
Definition Cookie.hpp:15
Cookie()=default
Default constructor for the Cookie class.
uint64_t expiration_date
The expiration date of the cookie in Unix time format.
Definition Cookie.hpp:17
Cookie(const std::string &name, const std::string &value, const std::string &path=std::string(), uint64_t expiration_date=0)
Parameterized constructor for the Cookie class.
Definition Cookie.hpp:27
std::string path
The path to which the cookie is associated.
Definition Cookie.hpp:16
Primary namespace for the Kurlyk library, encompassing initialization, request management,...