summaryrefslogtreecommitdiff
path: root/lib/http.js
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-10-28 13:35:33 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-10-28 13:35:34 +0100
commit610022851aaeff7a96518a8ee04826547dc33969 (patch)
tree18e3af915c8ea8efd4e0a8454788763f0a441d96 /lib/http.js
parent61ccaf9a974bedf54622a1d6ad6b6ad00f95f5a5 (diff)
downloadandroid-node-v8-610022851aaeff7a96518a8ee04826547dc33969.tar.gz
android-node-v8-610022851aaeff7a96518a8ee04826547dc33969.tar.bz2
android-node-v8-610022851aaeff7a96518a8ee04826547dc33969.zip
http: expose supported methods
Expose the list of supported HTTP methods as a property on the 'http' module object. Fixes #6422.
Diffstat (limited to 'lib/http.js')
-rw-r--r--lib/http.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http.js b/lib/http.js
index 44c3c2ce50..128bb0d2a4 100644
--- a/lib/http.js
+++ b/lib/http.js
@@ -28,6 +28,7 @@ var IncomingMessage = exports.IncomingMessage = incoming.IncomingMessage;
var common = require('_http_common');
+exports.METHODS = util._extend([], common.methods).sort();
exports.parsers = common.parsers;