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

Function RequestMethodString

src/httpserver.cpp:261–276  ·  view source on GitHub ↗

HTTP request method as string - use for logging only */

Source from the content-addressed store, hash-verified

259
260/** HTTP request method as string - use for logging only */
261std::string RequestMethodString(HTTPRequest::RequestMethod m) {
262 switch (m) {
263 case HTTPRequest::GET:
264 return "GET";
265 case HTTPRequest::POST:
266 return "POST";
267 case HTTPRequest::HEAD:
268 return "HEAD";
269 case HTTPRequest::PUT:
270 return "PUT";
271 case HTTPRequest::OPTIONS:
272 return "OPTIONS";
273 default:
274 return "unknown";
275 }
276}
277
278/** HTTP request callback */
279static void http_request_cb(struct evhttp_request *req, void *arg) {

Callers 2

http_request_cbFunction · 0.85
FUZZ_TARGETFunction · 0.85

Calls

no outgoing calls

Tested by 1

FUZZ_TARGETFunction · 0.68