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

Method GetRequestMethod

src/httpserver.cpp:623–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623HTTPRequest::RequestMethod HTTPRequest::GetRequestMethod() const
624{
625 switch (evhttp_request_get_command(req)) {
626 case EVHTTP_REQ_GET:
627 return GET;
628 break;
629 case EVHTTP_REQ_POST:
630 return POST;
631 break;
632 case EVHTTP_REQ_HEAD:
633 return HEAD;
634 break;
635 case EVHTTP_REQ_PUT:
636 return PUT;
637 break;
638 default:
639 return UNKNOWN;
640 break;
641 }
642}
643
644void RegisterHTTPHandler(const std::string &prefix, bool exactMatch, const HTTPRequestHandler &handler)
645{

Callers 3

http_request_cbFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls

no outgoing calls

Tested by 1

FUZZ_TARGETFunction · 0.64