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

Method GetValidCookiesAsString

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

Source from the content-addressed store, hash-verified

273}
274
275std::string CookieCache::GetValidCookiesAsString() {
276 const std::lock_guard<std::mutex> guard(mutex_);
277
278 DiscardExpiredCookies();
279 if (cookies.empty()) {
280 return "";
281 }
282
283 std::string cookie_string = cookies.begin()->second.AsCookieString();
284 for (auto it = (++cookies.begin()); cookies.end() != it; ++it) {
285 cookie_string += "; " + it->second.AsCookieString();
286 }
287 return cookie_string;
288}
289
290} // namespace internal
291} // namespace flight

Callers 3

SendingHeadersMethod · 0.80
AddAndValidateMethod · 0.80
TESTFunction · 0.80

Calls 4

AsCookieStringMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 2

AddAndValidateMethod · 0.64
TESTFunction · 0.64