]> git.cworth.org Git - obsolete/notmuch-web/blob - node_modules/express/lib/router/methods.js
Install the "express" node module via npm
[obsolete/notmuch-web] / node_modules / express / lib / router / methods.js
1
2 /*!
3  * Express - router - methods
4  * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
5  * MIT Licensed
6  */
7
8 /**
9  * Hypertext Transfer Protocol -- HTTP/1.1 
10  * http://www.ietf.org/rfc/rfc2616.txt
11  */
12
13 var RFC2616 = ['OPTIONS', 'GET', 'POST', 'PUT', 'DELETE', 'TRACE', 'CONNECT'];
14
15 /**
16  * HTTP Extensions for Distributed Authoring -- WEBDAV
17  * http://www.ietf.org/rfc/rfc2518.txt
18  */
19
20 var RFC2518 = ['PROPFIND', 'PROPPATCH', 'MKCOL', 'COPY', 'MOVE', 'LOCK', 'UNLOCK'];
21
22 /**
23  * Versioning Extensions to WebDAV 
24  * http://www.ietf.org/rfc/rfc3253.txt
25  */
26
27 var RFC3253 = ['VERSION-CONTROL', 'REPORT', 'CHECKOUT', 'CHECKIN', 'UNCHECKOUT', 'MKWORKSPACE', 'UPDATE', 'LABEL', 'MERGE', 'BASELINE-CONTROL', 'MKACTIVITY'];
28
29 /**
30  * Ordered Collections Protocol (WebDAV) 
31  * http://www.ietf.org/rfc/rfc3648.txt
32  */
33
34 var RFC3648 = ['ORDERPATCH'];
35
36 /**
37  * Web Distributed Authoring and Versioning (WebDAV) Access Control Protocol 
38  * http://www.ietf.org/rfc/rfc3744.txt
39  */
40
41 var RFC3744 = ['ACL'];
42
43 /**
44  * Web Distributed Authoring and Versioning (WebDAV) SEARCH
45  * http://www.ietf.org/rfc/rfc5323.txt
46  */
47
48 var RFC5323 = ['SEARCH'];
49
50 /**
51  * PATCH Method for HTTP 
52  * http://www.ietf.org/rfc/rfc5789.txt
53  */
54
55 var RFC5789 = ['PATCH'];
56
57 /**
58  * Expose the methods.
59  */
60
61 module.exports = [].concat(
62     RFC2616
63   , RFC2518
64   , RFC3253
65   , RFC3648
66   , RFC3744
67   , RFC5323
68   , RFC5789).map(function(method){
69     return method.toLowerCase();
70   });