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

Method header_value

lib_acl_cpp/src/mime/mime_head.cpp:167–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167const char* mime_head::header_value(const char* name) const
168{
169 if (m_headers == NULL) {
170 return NULL;
171 }
172 std::list<HEADER*>::const_iterator cit = m_headers->begin();
173 for (; cit != m_headers->end(); ++cit) {
174 if (strcasecmp((*cit)->name, name) == 0) {
175 return (*cit)->value;
176 }
177 }
178
179 return NULL;
180}
181
182int mime_head::header_values(const char* name, std::list<const char*>* values) const
183{

Callers 15

runMethod · 0.45
HttpGetFunction · 0.45
HttpGetFunction · 0.45
handle_requestFunction · 0.45
runMethod · 0.45
on_acceptMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
http_requestMethod · 0.45
header_outFunction · 0.45
mime_test1Function · 0.45

Calls 2

beginMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected