HEAD registers a new HEAD route for a path with matching handler in the router with optional route-level middleware. Panics on error.
(path string, h HandlerFunc, m ...MiddlewareFunc)
| 512 | // HEAD registers a new HEAD route for a path with matching handler in the |
| 513 | // router with optional route-level middleware. Panics on error. |
| 514 | func (e *Echo) HEAD(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo { |
| 515 | return e.Add(http.MethodHead, path, h, m...) |
| 516 | } |
| 517 | |
| 518 | // OPTIONS registers a new OPTIONS route for a path with matching handler in the |
| 519 | // router with optional route-level middleware. Panics on error. |