MCPcopy Create free account
hub / github.com/Raptor3um/raptoreum / RequestMethodString

Function RequestMethodString

src/httpserver.cpp:201–218  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

199
200/** HTTP request method as string - use for logging only */
201static std::string RequestMethodString(HTTPRequest::RequestMethod m) {
202 switch (m) {
203 case HTTPRequest::GET:
204 return "GET";
205 break;
206 case HTTPRequest::POST:
207 return "POST";
208 break;
209 case HTTPRequest::HEAD:
210 return "HEAD";
211 break;
212 case HTTPRequest::PUT:
213 return "PUT";
214 break;
215 default:
216 return "unknown";
217 }
218}
219
220/** HTTP request callback */
221static void http_request_cb(struct evhttp_request *req, void *arg) {

Callers 1

http_request_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected