MCPcopy Create free account
hub / github.com/bitcoin-sv/bitcoin-sv / GetRequestMethod

Method GetRequestMethod

src/httpserver.cpp:584–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582}
583
584HTTPRequest::RequestMethod HTTPRequest::GetRequestMethod() {
585 switch (evhttp_request_get_command(req)) {
586 case EVHTTP_REQ_GET:
587 return GET;
588 case EVHTTP_REQ_POST:
589 return POST;
590 case EVHTTP_REQ_HEAD:
591 return HEAD;
592 case EVHTTP_REQ_PUT:
593 return PUT;
594 case EVHTTP_REQ_OPTIONS:
595 return OPTIONS;
596 default:
597 return UNKNOWN;
598 }
599}
600
601void RegisterHTTPHandler(const std::string &prefix, bool exactMatch,
602 const HTTPRequestHandler &handler) {

Callers 3

http_request_cbFunction · 0.80
checkCORSFunction · 0.80
HTTPReq_JSONRPCFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected