summaryrefslogtreecommitdiff
path: root/includes/Http.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-02-28 04:57:59 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-02-28 04:57:59 +0100
commit30c37eb549c17b29a8131598cc06aeaf374896f5 (patch)
tree0105edcf5c8643c83a73f205577061686283a18e /includes/Http.h
parent3998f46d06ec5235ade776ec8615e081dd909920 (diff)
Having a slightly better approach for writing Http responses.
Diffstat (limited to 'includes/Http.h')
-rw-r--r--includes/Http.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/Http.h b/includes/Http.h
index 8b0e313..62f8786 100644
--- a/includes/Http.h
+++ b/includes/Http.h
@@ -13,8 +13,7 @@ const char * getStatusMsg(int httpStatus);
typedef std::map<String, String> StringMap;
typedef std::map<String, IO<Handle> > FileList;
-class Request {
- public:
+struct Request {
int method;
String host;
String uri;
@@ -22,6 +21,7 @@ class Request {
StringMap headers;
FileList files;
bool persistent;
+ String version;
};
enum {