MCPcopy Create free account
hub / github.com/axmolengine/axmol / updateOrAddCookie

Method updateOrAddCookie

core/network/HttpCookie.cpp:120–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void HttpCookie::updateOrAddCookie(CookieInfo* cookie)
121{
122 for (auto&& _cookie : _cookies)
123 {
124 if (cookie->isSame(_cookie))
125 {
126 _cookie.updateValue(*cookie);
127 return;
128 }
129 }
130 _cookies.push_back(std::move(*cookie));
131}
132
133std::string HttpCookie::checkAndGetFormatedMatchCookies(const Uri& uri)
134{

Callers 1

finishResponseMethod · 0.80

Calls 15

split_cbFunction · 0.85
iequalsFunction · 0.85
ends_withFunction · 0.85
isSameMethod · 0.80
updateValueMethod · 0.80
string_viewClass · 0.50
push_backMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45
emptyMethod · 0.45
assignMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected