MCPcopy Create free account
hub / github.com/acl-dev/acl / getCookieValue

Method getCookieValue

lib_acl_cpp/src/http/HttpServletRequest.cpp:196–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196const char* HttpServletRequest::getCookieValue(const char* name) const
197{
198 (void) getCookies();
199
200 std::vector<HttpCookie*>::const_iterator cit = cookies_.begin();
201 for (; cit != cookies_.end(); ++cit) {
202 const char* ptr = (*cit)->getName();
203 if (ptr && strcmp(name, ptr) == 0) {
204 return (*cit)->getValue();
205 }
206 }
207 return NULL;
208}
209
210const char* HttpServletRequest::getHeader(const char* name) const
211{

Callers 6

doPostMethod · 0.80
doResponseMethod · 0.80
doPostMethod · 0.80
doResponseMethod · 0.80
doPostMethod · 0.80
doPostMethod · 0.80

Calls 4

beginMethod · 0.80
endMethod · 0.45
getNameMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected