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

Function __get_hdr_entry

lib_protocol/src/http/http_hdr.c:256–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254/* ���ݱ�����ȡ�ú�������������� */
255
256static HTTP_HDR_ENTRY *__get_hdr_entry(const HTTP_HDR *hh, const char *name)
257{
258 HTTP_HDR_ENTRY *entry;
259 ACL_ITER iter;
260
261 if (hh->entry_lnk == NULL) {
262 acl_msg_fatal("%s, %s(%d): entry_lnk null",
263 __FILE__, __FUNCTION__, __LINE__);
264 }
265
266 acl_foreach(iter, hh->entry_lnk) {
267 entry = (HTTP_HDR_ENTRY *) iter.data;
268 if (strcasecmp(name, entry->name) == 0)
269 return (entry);
270 }
271
272 return NULL;
273}
274
275HTTP_HDR_ENTRY *http_hdr_entry(const HTTP_HDR *hh, const char *name)
276{

Callers 3

http_hdr_entryFunction · 0.85
http_hdr_entry_replaceFunction · 0.85
http_hdr_entry_offFunction · 0.85

Calls 2

acl_msg_fatalFunction · 0.85
acl_foreachFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…