21namespace network_manager
33 static Cookie Parse (
const std::string& cookieString);
35 bool isSession () const noexcept;
36 bool isExpired () const noexcept;
38 std::
string toString(
bool fullString) const;
48 void setCookie (
const Cookie& cookie);
49 void setCookie (
const std::string& cookieName, std::string cookieValue);
51 void addCookie (
Cookie cookie);
52 void addCookie (std::string cookieName, std::string cookieValue);
54 bool hasCookie (
const std::string& cookieName)
const noexcept;
56 std::string getCookieValue (
const std::string& cookieName)
const;
58 const Cookie* getCookie (
size_t idx)
const noexcept;
59 const Cookie* getCookie (
const std::string&
name)
const noexcept;
61 size_t getCookiesCount () const noexcept;
63 std::
string getCookiesString () const;
71 Cookie* getCookie (
size_t idx) noexcept;
72 Cookie* getCookie (const
std::
string& cookieName) noexcept;
Declare macros for the Network Manager library DLL API.
#define NETWORK_MANAGER_API
CookiesStorageType::const_iterator CookiesConstIterator
CookiesStorageType::iterator CookiesIterator
std::vector< Cookie > CookiesStorageType
std::chrono::system_clock::time_point ExpiresTime
const char * end(const char *str) noexcept
const char * begin(const char *str) noexcept