MCPcopy Create free account
hub / github.com/comaps/comaps / CombinedCookies

Method CombinedCookies

libs/platform/http_client.cpp:124–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124string HttpClient::CombinedCookies() const
125{
126 string serverCookies;
127 auto const it = m_headers.find("Set-Cookie");
128 if (it != m_headers.end())
129 serverCookies = it->second;
130
131 if (serverCookies.empty())
132 return m_cookies;
133
134 if (m_cookies.empty())
135 return serverCookies;
136
137 return serverCookies + "; " + m_cookies;
138}
139
140string HttpClient::CookieByName(string name) const
141{

Callers 1

FetchSessionIdMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected