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

Function RequestMethodString

src/httpserver.cpp:197–215  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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