userver: server::http::Cookie Class Reference
Loading...
Searching...
No Matches
server::http::Cookie Class Referencefinal

#include <userver/server/http/http_response_cookie.hpp>

Detailed Description

HTTP response cookie.

Definition at line 22 of file http_response_cookie.hpp.

Public Types

using CookiesMap = std::unordered_map<std::string, Cookie, utils::StrCaseHash>
 

Public Member Functions

 Cookie (std::string name, std::string value)
 
 Cookie (Cookie &&cookie) noexcept
 
 Cookie (const Cookie &cookie)
 
Cookieoperator= (Cookie &&) noexcept
 
Cookieoperator= (const Cookie &cookie)
 
const std::string & Name () const
 
const std::string & Value () const
 
bool IsSecure () const
 
CookieSetSecure ()
 
std::chrono::system_clock::time_point Expires () const
 
CookieSetExpires (std::chrono::system_clock::time_point value)
 
bool IsPermanent () const
 
CookieSetPermanent ()
 
bool IsHttpOnly () const
 
CookieSetHttpOnly ()
 
const std::string & Path () const
 
CookieSetPath (std::string value)
 
const std::string & Domain () const
 
CookieSetDomain (std::string value)
 
std::chrono::seconds MaxAge () const
 
CookieSetMaxAge (std::chrono::seconds value)
 
std::string SameSite () const
 
CookieSetSameSite (std::string value)
 
std::string ToString () const
 
void AppendToString (::http::headers::HeadersString &os) const
 

Static Public Member Functions

static std::optional< CookieFromString (std::string_view cookie_str)
 

Member Typedef Documentation

◆ CookiesMap

using server::http::Cookie::CookiesMap = std::unordered_map<std::string, Cookie, utils::StrCaseHash>

Definition at line 24 of file http_response_cookie.hpp.


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