MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetRequestMethod

Method GetRequestMethod

src/httpserver.cpp:743–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743HTTPRequest::RequestMethod HTTPRequest::GetRequestMethod()
744{
745 switch (evhttp_request_get_command(req)) {
746 case EVHTTP_REQ_GET:
747 return GET;
748 break;
749 case EVHTTP_REQ_POST:
750 return POST;
751 break;
752 case EVHTTP_REQ_HEAD:
753 return HEAD;
754 break;
755 case EVHTTP_REQ_PUT:
756 return PUT;
757 break;
758 default:
759 return UNKNOWN;
760 break;
761 }
762}
763
764void RegisterHTTPHandler(const std::string &prefix, bool exactMatch, const HTTPRequestHandler &handler)
765{

Callers 2

http_request_cbFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected