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

Method GetRequestMethod

src/httpserver.cpp:558–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558HTTPRequest::RequestMethod HTTPRequest::GetRequestMethod()
559{
560 switch (evhttp_request_get_command(req)) {
561 case EVHTTP_REQ_GET:
562 return GET;
563 break;
564 case EVHTTP_REQ_POST:
565 return POST;
566 break;
567 case EVHTTP_REQ_HEAD:
568 return HEAD;
569 break;
570 case EVHTTP_REQ_PUT:
571 return PUT;
572 break;
573 default:
574 return UNKNOWN;
575 break;
576 }
577}
578
579void RegisterHTTPHandler(const std::string &prefix, bool exactMatch, const HTTPRequestHandler &handler)
580{

Callers 2

http_request_cbFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected