diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-11-21 21:44:23 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-21 21:44:23 -0800 |
commit | 12554380d541d984d7ddff329d4c664ba48644d5 (patch) | |
tree | d87d8779a4f0903a2174da1572868af75677255d /src/node_http_parser.cc | |
parent | d695486185257533f3ef591654d2ce69dfeff74f (diff) | |
download | android-node-v8-12554380d541d984d7ddff329d4c664ba48644d5.tar.gz android-node-v8-12554380d541d984d7ddff329d4c664ba48644d5.tar.bz2 android-node-v8-12554380d541d984d7ddff329d4c664ba48644d5.zip |
Add support for SSDP methods -_-
Diffstat (limited to 'src/node_http_parser.cc')
-rw-r--r-- | src/node_http_parser.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index 5c7758b367..31e0ae5b60 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -56,6 +56,10 @@ static Persistent<String> report_sym; static Persistent<String> mkactivity_sym; static Persistent<String> checkout_sym; static Persistent<String> merge_sym; +static Persistent<String> msearch_sym; +static Persistent<String> notify_sym; +static Persistent<String> subscribe_sym; +static Persistent<String> unsubscribe_sym; static Persistent<String> unknown_method_sym; static Persistent<String> method_sym; @@ -138,6 +142,10 @@ method_to_str(unsigned short m) { case HTTP_MKACTIVITY: return mkactivity_sym; case HTTP_CHECKOUT: return checkout_sym; case HTTP_MERGE: return merge_sym; + case HTTP_MSEARCH: return msearch_sym; + case HTTP_NOTIFY: return notify_sym; + case HTTP_SUBSCRIBE: return subscribe_sym; + case HTTP_UNSUBSCRIBE:return unsubscribe_sym; default: return unknown_method_sym; } } @@ -381,6 +389,10 @@ void InitHttpParser(Handle<Object> target) { mkactivity_sym = NODE_PSYMBOL("MKACTIVITY"); checkout_sym = NODE_PSYMBOL("CHECKOUT"); merge_sym = NODE_PSYMBOL("MERGE"); + msearch_sym = NODE_PSYMBOL("M-SEARCH"); + notify_sym = NODE_PSYMBOL("NOTIFY"); + subscribe_sym = NODE_PSYMBOL("SUBSCRIBE"); + unsubscribe_sym = NODE_PSYMBOL("UNSUBSCRIBE");; unknown_method_sym = NODE_PSYMBOL("UNKNOWN_METHOD"); method_sym = NODE_PSYMBOL("method"); |