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

Method get_header

src/dpp/http_server_request.cpp:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62const std::string http_server_request::get_header(const std::string& header_name) const {
63 auto hdrs = request_headers.find(lowercase(header_name));
64 if (hdrs != request_headers.end()) {
65 return hdrs->second;
66 }
67 return std::string();
68}
69
70size_t http_server_request::get_header_count(const std::string& header_name) const {
71 return request_headers.count(lowercase(header_name));

Callers

nothing calls this directly

Calls 4

lowercaseFunction · 0.85
stringFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected