MXS-1220: Take the resource handler into use

The resource handler system is now usable but it doesn't perform anything
useful. Although, this will allows it to be tested for correctness.

Minor fixes to HttpResponse output and renaming of functions.
This commit is contained in:
Markus Mäkelä
2017-04-17 10:36:33 +03:00
committed by Markus Mäkelä
parent 8b1c0cd1a1
commit 900bf2db5a
6 changed files with 46 additions and 38 deletions

View File

@ -39,7 +39,7 @@ public:
* @param response Response body
* @param code HTTP return code
*/
HttpResponse(string response = "", enum http_code code = HTTP_200_OK);
HttpResponse(enum http_code code = HTTP_200_OK, string response = "");
~HttpResponse();
@ -59,10 +59,7 @@ public:
string get_response() const;
private:
HttpResponse(const HttpResponse&);
HttpResponse& operator = (const HttpResponse&);
string m_body; /**< Message body */
map<string, string> m_headers; /**< Message headers */
http_code m_code; /**< The HTTP code for the response */
enum http_code m_code; /**< The HTTP code for the response */
};