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

Method GetHeader

src/httpserver.cpp:543–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543std::pair<bool, std::string> HTTPRequest::GetHeader(const std::string& hdr)
544{
545 const struct evkeyvalq* headers = evhttp_request_get_input_headers(req);
546 assert(headers);
547 const char* val = evhttp_find_header(headers, hdr.c_str());
548 if (val)
549 return std::make_pair(true, val);
550 else
551 return std::make_pair(false, "");
552}
553
554std::string HTTPRequest::ReadBody()
555{

Callers 1

HTTPReq_JSONRPCFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected