forked from ricallinson/forgery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
methods.go
155 lines (133 loc) · 4.66 KB
/
methods.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
package f
/*
The method provides the routing functionality for POST requests to the given "path".
*/
func (this *Server) Post(path string, fn ...func(*Request, *Response, func())) {
this.Verb("post", path, fn...)
}
/*
The method provides the routing functionality for PUT requests to the given "path".
*/
func (this *Server) Put(path string, fn ...func(*Request, *Response, func())) {
this.Verb("put", path, fn...)
}
/*
The method provides the routing functionality for HEAD requests to the given "path".
*/
func (this *Server) Head(path string, fn ...func(*Request, *Response, func())) {
this.Verb("head", path, fn...)
}
/*
The method provides the routing functionality for DELETE requests to the given "path".
*/
func (this *Server) Delete(path string, fn ...func(*Request, *Response, func())) {
this.Verb("delete", path, fn...)
}
/*
The method provides the routing functionality for OPTIONS requests to the given "path".
*/
func (this *Server) Options(path string, fn ...func(*Request, *Response, func())) {
this.Verb("options", path, fn...)
}
/*
The method provides the routing functionality for TRACE requests to the given "path".
*/
func (this *Server) Trace(path string, fn ...func(*Request, *Response, func())) {
this.Verb("trace", path, fn...)
}
/*
The method provides the routing functionality for COPY requests to the given "path".
*/
func (this *Server) Copy(path string, fn ...func(*Request, *Response, func())) {
this.Verb("copy", path, fn...)
}
/*
The method provides the routing functionality for LOCK requests to the given "path".
*/
func (this *Server) Lock(path string, fn ...func(*Request, *Response, func())) {
this.Verb("lock", path, fn...)
}
/*
The method provides the routing functionality for MKCOL requests to the given "path".
*/
func (this *Server) Mkcol(path string, fn ...func(*Request, *Response, func())) {
this.Verb("mkcol", path, fn...)
}
/*
The method provides the routing functionality for MOVE requests to the given "path".
*/
func (this *Server) Move(path string, fn ...func(*Request, *Response, func())) {
this.Verb("move", path, fn...)
}
/*
The method provides the routing functionality for PROPFIND requests to the given "path".
*/
func (this *Server) Propfind(path string, fn ...func(*Request, *Response, func())) {
this.Verb("propfind", path, fn...)
}
/*
The method provides the routing functionality for PROPPATCH requests to the given "path".
*/
func (this *Server) Proppatch(path string, fn ...func(*Request, *Response, func())) {
this.Verb("proppatch", path, fn...)
}
/*
The method provides the routing functionality for UNLOCK requests to the given "path".
*/
func (this *Server) Unlock(path string, fn ...func(*Request, *Response, func())) {
this.Verb("unlock", path, fn...)
}
/*
The method provides the routing functionality for REPORT requests to the given "path".
*/
func (this *Server) Report(path string, fn ...func(*Request, *Response, func())) {
this.Verb("report", path, fn...)
}
/*
The method provides the routing functionality for MKACTIVITY requests to the given "path".
*/
func (this *Server) Mkactivity(path string, fn ...func(*Request, *Response, func())) {
this.Verb("mkactivity", path, fn...)
}
/*
The method provides the routing functionality for CHECKOUT requests to the given "path".
*/
func (this *Server) Checkout(path string, fn ...func(*Request, *Response, func())) {
this.Verb("checkout", path, fn...)
}
/*
The method provides the routing functionality for MERGE requests to the given "path".
*/
func (this *Server) Merge(path string, fn ...func(*Request, *Response, func())) {
this.Verb("merge", path, fn...)
}
/*
The method provides the routing functionality for M-SEARCH requests to the given "path".
*/
func (this *Server) Msearch(path string, fn ...func(*Request, *Response, func())) {
this.Verb("m-search", path, fn...)
}
/*
The method provides the routing functionality for NOTIFY requests to the given "path".
*/
func (this *Server) Notify(path string, fn ...func(*Request, *Response, func())) {
this.Verb("notify", path, fn...)
}
/*
The method provides the routing functionality for SUBSCRIBE requests to the given "path".
*/
func (this *Server) Subscribe(path string, fn ...func(*Request, *Response, func())) {
this.Verb("subscribe", path, fn...)
}
/*
The method provides the routing functionality for UNSUBSCRIBE requests to the given "path".
*/
func (this *Server) Unsubscribe(path string, fn ...func(*Request, *Response, func())) {
this.Verb("unsubscribe", path, fn...)
}
/*
The method provides the routing functionality for PATCH requests to the given "path".
*/
func (this *Server) Patch(path string, fn ...func(*Request, *Response, func())) {
this.Verb("patch", path, fn...)
}