MCPcopy Create free account
hub / github.com/dogecoin/dogecoin / GetRequestMethod

Method GetRequestMethod

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

Source from the content-addressed store, hash-verified

632}
633
634HTTPRequest::RequestMethod HTTPRequest::GetRequestMethod()
635{
636 switch (evhttp_request_get_command(req)) {
637 case EVHTTP_REQ_GET:
638 return GET;
639 break;
640 case EVHTTP_REQ_POST:
641 return POST;
642 break;
643 case EVHTTP_REQ_HEAD:
644 return HEAD;
645 break;
646 case EVHTTP_REQ_PUT:
647 return PUT;
648 break;
649 default:
650 return UNKNOWN;
651 break;
652 }
653}
654
655void RegisterHTTPHandler(const std::string &prefix, bool exactMatch, const HTTPRequestHandler &handler)
656{

Callers 2

http_request_cbFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected