Any registers a route for ALL of the HTTP methods: Get Post Put Delete Head Patch Options Connect Trace
(relativePath string, handlers ...context.Handler)
| 1553 | // Connect |
| 1554 | // Trace |
| 1555 | func (api *APIBuilder) Any(relativePath string, handlers ...context.Handler) (routes []*Route) { |
| 1556 | for _, m := range AllMethods { |
| 1557 | r := api.HandleMany(m, relativePath, handlers...) |
| 1558 | routes = append(routes, r...) |
| 1559 | } |
| 1560 | |
| 1561 | return |
| 1562 | } |
| 1563 | |
| 1564 | type ( |
| 1565 | // ServerHandler is the interface which all server handlers should implement. |