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

Method get_cookie

lib_acl_cpp/src/http/http_header.cpp:385–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385const HttpCookie* http_header::get_cookie(const char* name) const
386{
387 if (name == NULL || *name == 0) {
388 return NULL;
389 }
390
391 for (std::list<HttpCookie*>::const_iterator cit = cookies_.begin();
392 cit != cookies_.end(); ++cit) {
393
394 if (!strcasecmp((*cit)->getName(), name)) {
395 return *cit;
396 }
397 }
398
399 return NULL;
400}
401
402void http_header::add_res_cookie(const HTTP_HDR_ENTRY& entry)
403{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected