aboutsummaryrefslogtreecommitdiff
path: root/src/node_http_parser.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-06-30 00:54:03 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-06-30 00:54:08 -0700
commitd49d53fd499f7cf68fdfcc7d0c9d401e4e4407fb (patch)
treee95d4ce6d8f24e815e765bc8d1128612fbd12e89 /src/node_http_parser.cc
parent8c8534046c5ce25ad58cde5b71bc4a189e7fb7a8 (diff)
downloadandroid-node-v8-d49d53fd499f7cf68fdfcc7d0c9d401e4e4407fb.tar.gz
android-node-v8-d49d53fd499f7cf68fdfcc7d0c9d401e4e4407fb.tar.bz2
android-node-v8-d49d53fd499f7cf68fdfcc7d0c9d401e4e4407fb.zip
Expose new HTTP methods
Diffstat (limited to 'src/node_http_parser.cc')
-rw-r--r--src/node_http_parser.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
index 06bd05fc87..61992e0882 100644
--- a/src/node_http_parser.cc
+++ b/src/node_http_parser.cc
@@ -52,6 +52,10 @@ static Persistent<String> move_sym;
static Persistent<String> propfind_sym;
static Persistent<String> proppatch_sym;
static Persistent<String> unlock_sym;
+static Persistent<String> report_sym;
+static Persistent<String> mkactivity_sym;
+static Persistent<String> checkout_sym;
+static Persistent<String> merge_sym;
static Persistent<String> unknown_method_sym;
static Persistent<String> method_sym;
@@ -121,6 +125,10 @@ method_to_str(unsigned short m) {
case HTTP_PROPFIND: return propfind_sym;
case HTTP_PROPPATCH: return proppatch_sym;
case HTTP_UNLOCK: return unlock_sym;
+ case HTTP_REPORT: return report_sym;
+ case HTTP_MKACTIVITY: return mkactivity_sym;
+ case HTTP_CHECKOUT: return checkout_sym;
+ case HTTP_MERGE: return merge_sym;
default: return unknown_method_sym;
}
}
@@ -437,6 +445,10 @@ void InitHttpParser(Handle<Object> target) {
propfind_sym = NODE_PSYMBOL("PROPFIND");
proppatch_sym = NODE_PSYMBOL("PROPPATCH");
unlock_sym = NODE_PSYMBOL("UNLOCK");
+ report_sym = NODE_PSYMBOL("REPORT");
+ mkactivity_sym = NODE_PSYMBOL("MKACTIVITY");
+ checkout_sym = NODE_PSYMBOL("CHECKOUT");
+ merge_sym = NODE_PSYMBOL("MERGE");
unknown_method_sym = NODE_PSYMBOL("UNKNOWN_METHOD");
method_sym = NODE_PSYMBOL("method");