HTTP request method as string - use for logging only */
| 189 | |
| 190 | /** HTTP request method as string - use for logging only */ |
| 191 | std::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 */ |
| 212 | static void http_request_cb(struct evhttp_request* req, void* arg) |
no outgoing calls