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

Function RequestMethodString

src/httpserver.cpp:192–210  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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