MXS-1220: Create HTTP response class

The HTTP response class simplifies the response creation. The next step is
to add generation of all the default headers that are needed by the REST
API.
This commit is contained in:
Markus Mäkelä
2017-04-17 02:20:13 +03:00
committed by Markus Mäkelä
parent 55b52b8ab1
commit a73d3e9276
4 changed files with 150 additions and 5 deletions

View File

@ -124,9 +124,9 @@ private:
HttpRequest(const HttpRequest&);
HttpRequest& operator = (const HttpRequest&);
map<string, string> m_headers;
Closer<json_t*> m_json;
string m_json_string;
string m_resource;
enum http_verb m_verb;
map<string, string> m_headers; /**< Request headers */
Closer<json_t*> m_json; /**< Request body */
string m_json_string; /**< String version of @c m_json */
string m_resource; /**< Requested resource */
enum http_verb m_verb; /**< Request method */
};