MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / get_header_list

Method get_header_list

src/dpp/http_server_request.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74std::list<std::string> http_server_request::get_header_list(const std::string& header_name) const {
75 auto hdrs = request_headers.equal_range(lowercase(header_name));
76 if (hdrs.first != request_headers.end()) {
77 std::list<std::string> data;
78 for ( auto i = hdrs.first; i != hdrs.second; ++i ) {
79 data.emplace_back(i->second);
80 }
81 return data;
82 }
83 return std::list<std::string>();
84}
85
86std::multimap<std::string, std::string> http_server_request::get_headers() const {
87 return request_headers;

Callers

nothing calls this directly

Calls 2

lowercaseFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected