From 610022851aaeff7a96518a8ee04826547dc33969 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 28 Oct 2013 13:35:33 +0100 Subject: http: expose supported methods Expose the list of supported HTTP methods as a property on the 'http' module object. Fixes #6422. --- lib/http.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/http.js') 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; -- cgit v1.2.3