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

Function RequestMethodString

src/httpserver.cpp:119–134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

117
118/** HTTP request method as string - use for logging only */
119static std::string RequestMethodString(HTTPRequest::RequestMethod m) {
120 switch (m) {
121 case HTTPRequest::GET:
122 return "GET";
123 case HTTPRequest::POST:
124 return "POST";
125 case HTTPRequest::HEAD:
126 return "HEAD";
127 case HTTPRequest::PUT:
128 return "PUT";
129 case HTTPRequest::OPTIONS:
130 return "OPTIONS";
131 default:
132 return "unknown";
133 }
134}
135
136/** HTTP request callback */
137static 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