summaryrefslogtreecommitdiffstats
path: root/src/uscxml/server/HTTPServer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/server/HTTPServer.h')
-rw-r--r--src/uscxml/server/HTTPServer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/uscxml/server/HTTPServer.h b/src/uscxml/server/HTTPServer.h
index b1816bc..dc9af53 100644
--- a/src/uscxml/server/HTTPServer.h
+++ b/src/uscxml/server/HTTPServer.h
@@ -71,7 +71,14 @@ public:
class Reply {
public:
+ Reply() : status(200), type("get"), evhttpReq(NULL) {}
Reply(Request req) : status(200), type(req.data.compound["type"].atom), evhttpReq(req.evhttpReq) {}
+
+ void setRequest(Request req) {
+ type = req.data.compound["type"].atom;
+ evhttpReq = req.evhttpReq;
+ }
+
int status;
std::string type;
std::map<std::string, std::string> headers;