| 62 | }; |
| 63 | |
| 64 | static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string message) |
| 65 | { |
| 66 | req->WriteHeader("Content-Type", "text/plain"); |
| 67 | req->WriteReply(status, message + "\r\n"); |
| 68 | return false; |
| 69 | } |
| 70 | |
| 71 | static RetFormat ParseDataFormat(std::string& param, const std::string& strReq) |
| 72 | { |
no test coverage detected