MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetHeader

Method GetHeader

src/httpserver.cpp:525–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525std::pair<bool, std::string> HTTPRequest::GetHeader(const std::string& hdr) const
526{
527 const struct evkeyvalq* headers = evhttp_request_get_input_headers(req);
528 assert(headers);
529 const char* val = evhttp_find_header(headers, hdr.c_str());
530 if (val)
531 return std::make_pair(true, val);
532 else
533 return std::make_pair(false, "");
534}
535
536std::string HTTPRequest::ReadBody()
537{

Callers 2

HTTPReq_JSONRPCFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls

no outgoing calls

Tested by 1

FUZZ_TARGETFunction · 0.64