MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / RequestMethodString

Function RequestMethodString

src/httpserver.cpp:115–126  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

113
114/** HTTP request method as string - use for logging only */
115std::string_view RequestMethodString(HTTPRequestMethod m)
116{
117 switch (m) {
118 using enum HTTPRequestMethod;
119 case GET: return "GET";
120 case POST: return "POST";
121 case HEAD: return "HEAD";
122 case PUT: return "PUT";
123 case UNKNOWN: return "unknown";
124 } // no default case, so the compiler can warn about missing cases
125 assert(false);
126}
127
128static void MaybeDispatchRequestToWorker(std::shared_ptr<HTTPRequest> hreq)
129{

Callers 2

FUZZ_TARGETFunction · 0.85

Calls

no outgoing calls

Tested by 1

FUZZ_TARGETFunction · 0.68