diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-10-28 13:35:33 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-10-28 13:35:34 +0100 |
commit | 610022851aaeff7a96518a8ee04826547dc33969 (patch) | |
tree | 18e3af915c8ea8efd4e0a8454788763f0a441d96 /lib/http.js | |
parent | 61ccaf9a974bedf54622a1d6ad6b6ad00f95f5a5 (diff) | |
download | nodejs-610022851aaeff7a96518a8ee04826547dc33969.tar.gz nodejs-610022851aaeff7a96518a8ee04826547dc33969.tar.bz2 nodejs-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.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http.js b/lib/http.js index 44c3c2ce5..128bb0d2a 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; |