methods.js
This file
Path
lib/router/methods.js
36 lines · 479 bytes · JavaScript
Last changed by
Changed express.methods to include only those supported by nodeTj Holowaychukbefore adoption5e56446
History of this fileTake it
123456789101112131415161718192021222324252627282930313233343536
/*! * Express - router - methods * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */
/** * HTTP methods supported by node. */
module.exports = [ 'get' , 'post' , 'put' , 'head' , 'delete' , 'options' , 'trace' , 'copy' , 'lock' , 'mkcol' , 'move' , 'propfind' , 'proppatch' , 'unlock' , 'report' , 'mkactivity' , 'checkout' , 'merge' , 'm-search' , 'notify' , 'subscribe' , 'unsubscribe' , 'patch'];