& GetName(
void)
const;
72 const string& GetValue(
void)
const;
74 const string& GetDomain(
void)
const;
79 boolGetHostOnly(
void)
const;
81 const string& GetPath(
void)
const;
84 stringGetExpirationStr(
void)
const;
86 const CTime& GetExpirationTime(
void)
const;
89 boolGetSecure(
void)
const;
92 boolGetHttpOnly(
void)
const;
95 const string& GetExtension(
void)
const;
117 voidSetHostOnly(
boolhost_only);
124 voidSetExpirationTime(
const CTime& exp_time);
127 voidSetSecure(
boolsecure);
130 voidSetHttpOnly(
boolhttp_only);
137 boolIsExpired(
void)
const;
140 boolIsExpired(
const CTime& now)
const;
143 boolValidate(
void)
const;
160 stringAsString(ECookieFormat
format)
const;
182 boolMatch(
const CUrl& url)
const;
190 boolMatchDomain(
const string& host)
const;
194 boolMatchPath(
const string& path)
const;
212 static boolIsValidValue(
const string&
value,
214 string* err_msg =
NULL);
219 voidx_Validate(
const string&
value, EFieldType field)
const;
281 size_tAdd(ECookieHeader header,
288 voidCleanup(
size_tmax_count = 0);
305 bool operator()(
const string& s1,
const string& s2)
const{
320 const string& name);
324 static stringsx_RevertDomain(
const string& domain);
344 operator bool(
void)
const;
360 boolx_IsValid(
void)
const;
362 voidx_CheckState(
void)
const;
368 voidx_Settle(
void);
397 virtual const char* GetErrCodeString(
void)
const override;
536 inlineCHttpCookie_CI::operator
bool(
void)
constCHttpCookieException â.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
container_type::const_iterator const_iterator
bool operator<(const CEquivRange &A, const CEquivRange &B)
bool operator==(const CEquivRange &A, const CEquivRange &B)
static const char * str(char *buf, int n)
CVect2< NCBI_PROMOTE(int,U) > operator*(int v1, const CVect2< U > &v2)
void SetPath(const CTempString &path)
Set cookie's path.
bool GetSecure(void) const
Get secure flag.
void SetValue(const CTempString &value)
Set cookie's value.
const string & GetPath(void) const
Get path.
bool GetHostOnly(void) const
Get host-only flag.
CHttpCookies::TCookieList TCookieList
const_iterator end(void) const
Empty iterator.
map< string, TCookieList, SDomainLess > TCookieMap
EFieldType
Cookie field selector.
const string & GetDomain(void) const
Get domain.
const string & GetName(void) const
Get cookie's name. No encoding/decoding is performed.
const string & GetExtension(void) const
Get any unparsed attributes merged into a single line using semicolon separators.
void SetExpirationTime(const CTime &exp_time)
Set expiration time, must be a GMT one.
void SetSecure(bool secure)
Set secure flag.
const CTime & GetExpirationTime(void) const
The returned CTime may be empty if expiration date is not set.
bool IsExpired(void) const
Check if the cookie is currently expired.
bool operator()(const string &s1, const string &s2) const
void SetHttpOnly(bool http_only)
Set HTTP-only flag.
bool GetHttpOnly(void) const
Get HTTP-only flag.
friend class CHttpCookie_CI
const_iterator begin(void) const
Iterate all cookies.
CHttpCookie_CI const_iterator
Allow to use cookies with macros like ITERATE.
const string & GetValue(void) const
Get cookie's value. No encoding/decoding is performed.
void SetHostOnly(bool host_only)
Set host-only flag.
ECookieHeader
Cookie header type.
list< CHttpCookie > TCookieList
void SetName(const CTempString &name)
Set cookie's name.
const CHttpCookies * m_Cookies
void SetExtension(const CTempString &extension)
Any additional attributes (multiple attributes should be separated with semicolon).
bool operator!=(const CHttpCookie_CI &other) const
TCookieList::const_iterator TList_CI
void SetDomain(const CTempString &domain)
Set cookie's domain.
NCBI_EXCEPTION_DEFAULT(CHttpCookieException, CException)
ECookieFormat
Whether the cookie is sent as a part of HTTP request or HTTP response.
bool operator==(const CHttpCookie_CI &other) const
CHttpCookies::TCookieMap TCookieMap
TCookieMap::const_iterator TMap_CI
int x_Compare(const CHttpCookie_CI &other) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool operator!=(const CNCBI_IPAddr &lhs, unsigned int rhs)
static int CompareNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive compare of a substring with another string.
static string & ToLower(string &str)
Convert string to lower case â string& version.
@ eCurrent
Use current time. See also CCurrentTime.
@ eGmt
GMT (Greenwich Mean Time)
#define NCBI_XNCBI_EXPORT
The blob sat and sat key Both must be positive integers</td > n< td > Non empty string The interpretation of the blob id depends on a processor Cassandra n processor expects the following format
const GenericPointer< typename T::ValueType > T2 value
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4