MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / GetHeader

Method GetHeader

src/httpserver.cpp:653–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653std::pair<bool, std::string>
654HTTPRequest::GetHeader(const std::string &hdr) const {
655 const struct evkeyvalq *headers = evhttp_request_get_input_headers(req);
656 assert(headers);
657 const char *val = evhttp_find_header(headers, hdr.c_str());
658 if (val) {
659 return std::make_pair(true, val);
660 } else {
661 return std::make_pair(false, "");
662 }
663}
664
665std::string HTTPRequest::ReadBody() {
666 struct evbuffer *buf = evhttp_request_get_input_buffer(req);

Callers 3

checkCORSFunction · 0.80
ProcessHTTPRequestMethod · 0.80
FUZZ_TARGETFunction · 0.80

Calls

no outgoing calls

Tested by 1

FUZZ_TARGETFunction · 0.64