MCPcopy Create free account
hub / github.com/apache/arrow / DiscardExpiredCookies

Method DiscardExpiredCookies

cpp/src/arrow/flight/cookie_internal.cc:246–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244std::string Cookie::GetName() const { return cookie_name_; }
245
246void CookieCache::DiscardExpiredCookies() {
247 for (auto it = cookies.begin(); it != cookies.end();) {
248 if (it->second.IsExpired()) {
249 it = cookies.erase(it);
250 } else {
251 ++it;
252 }
253 }
254}
255
256void CookieCache::UpdateCachedCookies(const CallHeaders& incoming_headers) {
257 CookieHeaderPair header_values = incoming_headers.equal_range("set-cookie");

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
IsExpiredMethod · 0.45

Tested by

no test coverage detected