Kurlyk
Toggle main menu visibility
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
8
namespace
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)
28
:
name
(
name
),
value
(
value
),
path
(
path
),
expiration_date
(
expiration_date
) {}
29
};
30
31
};
// namespace kurlyk
32
33
#endif
// _KURLYK_TYPES_COOKIE_HPP_INCLUDED
kurlyk::Cookie::name
std::string name
The name of the cookie.
Definition
Cookie.hpp:14
kurlyk::Cookie::value
std::string value
The value of the cookie.
Definition
Cookie.hpp:15
kurlyk::Cookie::Cookie
Cookie()=default
Default constructor for the Cookie class.
kurlyk::Cookie::expiration_date
uint64_t expiration_date
The expiration date of the cookie in Unix time format.
Definition
Cookie.hpp:17
kurlyk::Cookie::Cookie
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
kurlyk::Cookie::path
std::string path
The path to which the cookie is associated.
Definition
Cookie.hpp:16
kurlyk
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
include
kurlyk
types
Cookie.hpp
Generated by
1.17.0