File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,8 @@ const (
170
170
charsetUTF8 = "charset=UTF-8"
171
171
// PROPFIND Method can be used on collection and property resources.
172
172
PROPFIND = "PROPFIND"
173
+ // REPORT Method can be used to get information about a resource, see rfc 3253
174
+ REPORT = "REPORT"
173
175
)
174
176
175
177
// Headers
@@ -251,6 +253,7 @@ var (
251
253
PROPFIND ,
252
254
http .MethodPut ,
253
255
http .MethodTrace ,
256
+ REPORT ,
254
257
}
255
258
)
256
259
Original file line number Diff line number Diff line change 33
33
propfind HandlerFunc
34
34
put HandlerFunc
35
35
trace HandlerFunc
36
+ report HandlerFunc
36
37
}
37
38
)
38
39
@@ -247,6 +248,8 @@ func (n *node) addHandler(method string, h HandlerFunc) {
247
248
n .methodHandler .put = h
248
249
case http .MethodTrace :
249
250
n .methodHandler .trace = h
251
+ case REPORT :
252
+ n .methodHandler .report = h
250
253
}
251
254
}
252
255
@@ -272,6 +275,8 @@ func (n *node) findHandler(method string) HandlerFunc {
272
275
return n .methodHandler .put
273
276
case http .MethodTrace :
274
277
return n .methodHandler .trace
278
+ case REPORT :
279
+ return n .methodHandler .report
275
280
default :
276
281
return nil
277
282
}
You can’t perform that action at this time.
0 commit comments