MCPcopy Create free account
hub / github.com/Raptor3um/raptoreum / GetRequestMethod

Method GetRequestMethod

src/httpserver.cpp:621–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621HTTPRequest::RequestMethod HTTPRequest::GetRequestMethod() {
622 switch (evhttp_request_get_command(req)) {
623 case EVHTTP_REQ_GET:
624 return GET;
625 break;
626 case EVHTTP_REQ_POST:
627 return POST;
628 break;
629 case EVHTTP_REQ_HEAD:
630 return HEAD;
631 break;
632 case EVHTTP_REQ_PUT:
633 return PUT;
634 break;
635 default:
636 return UNKNOWN;
637 break;
638 }
639}
640
641void RegisterHTTPHandler(const std::string &prefix, bool exactMatch, const HTTPRequestHandler &handler) {
642 LogPrint(BCLog::HTTP, "Registering HTTP handler for %s (exactmatch %d)\n", prefix, exactMatch);

Callers 2

http_request_cbFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected