aboutsummaryrefslogtreecommitdiffstats
path: root/dgbuilder/dgeflows/node_modules/express/node_modules/methods/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'dgbuilder/dgeflows/node_modules/express/node_modules/methods/index.js')
-rw-r--r--dgbuilder/dgeflows/node_modules/express/node_modules/methods/index.js42
1 files changed, 42 insertions, 0 deletions
diff --git a/dgbuilder/dgeflows/node_modules/express/node_modules/methods/index.js b/dgbuilder/dgeflows/node_modules/express/node_modules/methods/index.js
new file mode 100644
index 00000000..e89c7fd8
--- /dev/null
+++ b/dgbuilder/dgeflows/node_modules/express/node_modules/methods/index.js
@@ -0,0 +1,42 @@
+
+var http = require('http');
+
+/* istanbul ignore next: implementation differs on version */
+if (http.METHODS) {
+
+ module.exports = http.METHODS.map(function(method){
+ return method.toLowerCase();
+ });
+
+} else {
+
+ module.exports = [
+ 'get',
+ 'post',
+ 'put',
+ 'head',
+ 'delete',
+ 'options',
+ 'trace',
+ 'copy',
+ 'lock',
+ 'mkcol',
+ 'move',
+ 'purge',
+ 'propfind',
+ 'proppatch',
+ 'unlock',
+ 'report',
+ 'mkactivity',
+ 'checkout',
+ 'merge',
+ 'm-search',
+ 'notify',
+ 'subscribe',
+ 'unsubscribe',
+ 'patch',
+ 'search',
+ 'connect'
+ ];
+
+}