summaryrefslogtreecommitdiff
path: root/icespider/common/http.ice
diff options
context:
space:
mode:
Diffstat (limited to 'icespider/common/http.ice')
-rw-r--r--icespider/common/http.ice18
1 files changed, 18 insertions, 0 deletions
diff --git a/icespider/common/http.ice b/icespider/common/http.ice
index a44a492..72e1de7 100644
--- a/icespider/common/http.ice
+++ b/icespider/common/http.ice
@@ -2,6 +2,7 @@
#define ICESPIDER_HTTP_ICE
[["ice-prefix"]]
+[["underscore"]]
module IceSpider {
["slicer:ignore"]
local exception HttpException {
@@ -32,6 +33,23 @@ module IceSpider {
["slicer:json:object"]
local dictionary<string, string> StringMap;
+
+ module S { // Statuses
+ const string OK = "OK";
+ const string MOVED = "Moved";
+ };
+ module H { // Header names
+ const string ACCEPT = "Accept";
+ const string LOCATION = "Location";
+ const string SET_COOKIE = "Set-Cookie";
+ const string CONTENT_TYPE = "Content-Type";
+ };
+ module MIME { // Common MIME types
+ const string TEXT_PLAIN = "text/plain";
+ };
+ module E { // Common environment vars
+ const string CONTENT_TYPE = "CONTENT_TYPE";
+ };
};
#endif