MCPcopy Index your code
hub / github.com/labstack/echo / HEAD

Method HEAD

echo.go:514–516  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
514func (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.

Callers 2

TestGroup_HEADFunction · 0.45
TestEchoHeadFunction · 0.45

Calls 1

AddMethod · 0.95

Tested by 2

TestGroup_HEADFunction · 0.36
TestEchoHeadFunction · 0.36