MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / getNumCookies

Method getNumCookies

Libraries/HttpClient/HttpClientSession.cpp:1076–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074bool SC::HttpClientSession::isRetryableStatusCode(int statusCode) { return sessionIsRetryableStatusCode(statusCode); }
1075
1076SC::size_t SC::HttpClientSession::getNumCookies() const
1077{
1078 size_t count = 0;
1079 if (not initialized)
1080 {
1081 return count;
1082 }
1083
1084 for (size_t idx = 0; idx < sessionMemory.cookies.sizeInElements(); ++idx)
1085 {
1086 if (sessionMemory.cookies[idx].isInUse())
1087 {
1088 count += 1;
1089 }
1090 }
1091 return count;
1092}
1093
1094SC::size_t SC::HttpClientSession::getNumAuthorizations() const
1095{

Callers 2

sessionLayerMethod · 0.80
saneMainFunction · 0.80

Calls

no outgoing calls

Tested by 1

sessionLayerMethod · 0.64