summaryrefslogtreecommitdiff
path: root/src/Http.h
diff options
context:
space:
mode:
authoroskwon <kos@dev3>2014-06-23 04:45:25 (GMT)
committeroskwon <kos@dev3>2014-06-23 04:45:25 (GMT)
commit6a0ddc61f2981645babeaf3d657ded6b0050ff65 (patch)
tree8b4378ced6fecf13c6e898272429d1d30b9eb7d7 /src/Http.h
parent54c33482e6f2dde665fb68a14344834bc330a7f9 (diff)
Add error/athorization response.
Fix mis-typo on help.
Diffstat (limited to 'src/Http.h')
-rw-r--r--src/Http.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Http.h b/src/Http.h
index 31246bc..69f7a09 100644
--- a/src/Http.h
+++ b/src/Http.h
@@ -33,8 +33,7 @@ public:
std::string page;
std::map<std::string, std::string> page_params;
-private:
-
+ std::string authorization;
public:
HttpHeader() : type(UNKNOWN) {}
virtual ~HttpHeader() {}
@@ -46,4 +45,9 @@ public:
};
//----------------------------------------------------------------------
+namespace HttpUtil {
+ std::string http_error(int errcode, std::string errmsg);
+};
+//----------------------------------------------------------------------
+
#endif /* HTTP_H_ */