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

Method header_value

lib_acl_cpp/src/mime/mime_node.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76const char* mime_node::header_value(const char* name) const {
77 ACL_ITER iter;
78
79 acl_foreach(iter, m_pMimeNode->header_list) {
80 HEADER_NV* hdr = (HEADER_NV*) iter.data;
81 if (strcasecmp(hdr->name, name) == 0 && *hdr->value) {
82 return hdr->value;
83 }
84 }
85
86 return NULL;
87}
88
89const std::map<string, string>& mime_node::get_headers() const {
90 if (m_headers_ != NULL) {

Callers

nothing calls this directly

Calls 1

acl_foreachFunction · 0.70

Tested by

no test coverage detected