MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / GetRequestMethod

Method GetRequestMethod

src/httpserver.cpp:749–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

http_request_cbFunction · 0.80
checkCORSFunction · 0.80
ProcessHTTPRequestMethod · 0.80
FUZZ_TARGETFunction · 0.80

Calls

no outgoing calls

Tested by 1

FUZZ_TARGETFunction · 0.64