MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetHeader

Method GetHeader

src/httpserver.cpp:482–491  ·  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{
484 const struct evkeyvalq* headers = evhttp_request_get_input_headers(req);
485 assert(headers);
486 const char* val = evhttp_find_header(headers, hdr.c_str());
487 if (val)
488 return std::make_pair(true, val);
489 else
490 return std::make_pair(false, "");
491}
492
493std::string HTTPRequest::ReadBody()
494{

Callers 1

HTTPReq_JSONRPCFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected