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

Method GetRequestMethod

src/httpserver.cpp:692–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690
691std::string HTTPRequest::GetURI() { return evhttp_request_get_uri(req); }
692HTTPRequest::RequestMethod HTTPRequest::GetRequestMethod()
693{
694 switch (evhttp_request_get_command(req))
695 {
696 case EVHTTP_REQ_GET:
697 return GET;
698 break;
699 case EVHTTP_REQ_POST:
700 return POST;
701 break;
702 case EVHTTP_REQ_HEAD:
703 return HEAD;
704 break;
705 case EVHTTP_REQ_PUT:
706 return PUT;
707 break;
708 default:
709 return UNKNOWN;
710 break;
711 }
712}
713
714void RegisterHTTPHandler(const std::string &prefix, bool exactMatch, const HTTPRequestHandler &handler)
715{

Callers 2

http_request_cbFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected