Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 7a24021 point at it.

more res.redirect() testsTj Holowaychukbefore adoption7a24021

lines 1–8why, one step back
1
2/*!3 * Express - router - methods4 * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>5 * MIT Licensed6 */78/**

Changed express.methods to include only those supported by nodeTj Holowaychukbefore adoption5e56446

line 9why, one step back
9 * HTTP methods supported by node.

more res.redirect() testsTj Holowaychukbefore adoption7a24021

lines 10–11why, one step back
10 */
11

Changed express.methods to include only those supported by nodeTj Holowaychukbefore adoption5e56446

lines 12–36why, one step back
12module.exports = [
13 'get'14 , 'post'15 , 'put'16 , 'head'17 , 'delete'18 , 'options'19 , 'trace'20 , 'copy'21 , 'lock'22 , 'mkcol'23 , 'move'24 , 'propfind'25 , 'proppatch'26 , 'unlock'27 , 'report'28 , 'mkactivity'29 , 'checkout'30 , 'merge'31 , 'm-search'32 , 'notify'33 , 'subscribe'34 , 'unsubscribe'35 , 'patch'36];