MCPcopy Create free account
hub / github.com/bitcoin-sv/bitcoin-sv / GetHeader

Method GetHeader

src/httpserver.cpp:482–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482std::pair<bool, std::string> HTTPRequest::GetHeader(const std::string &hdr) {
483 const struct evkeyvalq *headers = evhttp_request_get_input_headers(req);
484 assert(headers);
485 const char *val = evhttp_find_header(headers, hdr.c_str());
486 if (val)
487 return std::make_pair(true, val);
488 else
489 return std::make_pair(false, "");
490}
491
492std::string HTTPRequest::ReadBody() {
493 struct evbuffer *buf = evhttp_request_get_input_buffer(req);

Callers 8

checkCORSFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
RecvMsgMemoryUsageFunction · 0.80
GetNewMsgsMethod · 0.80
ProcessMessagesFunction · 0.80

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64