MCPcopy Create free account
hub / github.com/ElementsProject/elements / RequestMethodString

Function RequestMethodString

src/httpserver.cpp:191–209  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

189
190/** HTTP request method as string - use for logging only */
191std::string RequestMethodString(HTTPRequest::RequestMethod m)
192{
193 switch (m) {
194 case HTTPRequest::GET:
195 return "GET";
196 break;
197 case HTTPRequest::POST:
198 return "POST";
199 break;
200 case HTTPRequest::HEAD:
201 return "HEAD";
202 break;
203 case HTTPRequest::PUT:
204 return "PUT";
205 break;
206 default:
207 return "unknown";
208 }
209}
210
211/** HTTP request callback */
212static 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