Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50665 views
1
/*!
2
* Express - router - methods
3
* Copyright(c) 2010 TJ Holowaychuk <[email protected]>
4
* MIT Licensed
5
*
6
* Adapted for SS
7
* (C) 2011 Nodejitsu Inc. <[email protected]>
8
*
9
*/
10
11
/**
12
* Hypertext Transfer Protocol -- HTTP/1.1
13
* http://www.ietf.org/rfc/rfc2616.txt
14
*/
15
var RFC2616 = ['OPTIONS', 'GET', 'POST', 'PUT', 'DELETE', 'TRACE', 'CONNECT'];
16
17
/**
18
* HTTP Extensions for Distributed Authoring -- WEBDAV
19
* http://www.ietf.org/rfc/rfc2518.txt
20
*/
21
var RFC2518 = ['PROPFIND', 'PROPPATCH', 'MKCOL', 'COPY', 'MOVE', 'LOCK', 'UNLOCK'];
22
23
/**
24
* Versioning Extensions to WebDAV
25
* http://www.ietf.org/rfc/rfc3253.txt
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
var RFC3648 = ['ORDERPATCH'];
34
35
/**
36
* Web Distributed Authoring and Versioning (WebDAV) Access Control Protocol
37
* http://www.ietf.org/rfc/rfc3744.txt
38
*/
39
var RFC3744 = ['ACL'];
40
41
/**
42
* Web Distributed Authoring and Versioning (WebDAV) SEARCH
43
* http://www.ietf.org/rfc/rfc5323.txt
44
*/
45
var RFC5323 = ['SEARCH'];
46
47
/**
48
* PATCH Method for HTTP
49
* http://www.ietf.org/rfc/rfc5789.txt
50
*/
51
var RFC5789 = ['PATCH'];
52
53
/**
54
* Expose the methods.
55
*/
56
module.exports = [].concat(
57
RFC2616,
58
RFC2518,
59
RFC3253,
60
RFC3648,
61
RFC3744,
62
RFC5323,
63
RFC5789
64
).map(function (method) {
65
return method.toLowerCase();
66
});
67