Kurlyk
Loading...
Searching...
No Matches
kurlyk::Cookie Class Reference

Represents an HTTP cookie. More...

#include <Cookie.hpp>

Public Member Functions

 Cookie ()=default
 Default constructor for the Cookie class.
 
 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.
 

Public Attributes

std::string name
 The name of the cookie.
 
std::string value
 The value of the cookie.
 
std::string path
 The path to which the cookie is associated.
 
uint64_t expiration_date = 0
 The expiration date of the cookie in Unix time format.
 

Detailed Description

Represents an HTTP cookie.

Definition at line 12 of file Cookie.hpp.

Constructor & Destructor Documentation

◆ Cookie() [1/2]

kurlyk::Cookie::Cookie ( )
default

Default constructor for the Cookie class.

◆ Cookie() [2/2]

kurlyk::Cookie::Cookie ( const std::string & name,
const std::string & value,
const std::string & path = std::string(),
uint64_t expiration_date = 0 )
inline

Parameterized constructor for the Cookie class.

Parameters
nameThe name of the cookie.
valueThe value of the cookie.
pathThe path to which the cookie is associated.
expiration_dateThe expiration date of the cookie in Unix time format.

Definition at line 27 of file Cookie.hpp.

Member Data Documentation

◆ expiration_date

uint64_t kurlyk::Cookie::expiration_date = 0

The expiration date of the cookie in Unix time format.

Definition at line 17 of file Cookie.hpp.

◆ name

std::string kurlyk::Cookie::name

The name of the cookie.

Definition at line 14 of file Cookie.hpp.

◆ path

std::string kurlyk::Cookie::path

The path to which the cookie is associated.

Definition at line 16 of file Cookie.hpp.

◆ value

std::string kurlyk::Cookie::value

The value of the cookie.

Definition at line 15 of file Cookie.hpp.


The documentation for this class was generated from the following file: