Methods adds a matcher for HTTP methods. It accepts a sequence of one or more methods to be matched, e.g.: "GET", "POST", "PUT".
(methods ...string)
| 333 | // It accepts a sequence of one or more methods to be matched, e.g.: |
| 334 | // "GET", "POST", "PUT". |
| 335 | func (r *Route) Methods(methods ...string) *Route { |
| 336 | for k, v := range methods { |
| 337 | methods[k] = strings.ToUpper(v) |
| 338 | } |
| 339 | return r.addMatcher(methodMatcher(methods)) |
| 340 | } |
| 341 | |
| 342 | // Path ----------------------------------------------------------------------- |
| 343 |
nothing calls this directly
no test coverage detected