MCPcopy
hub / github.com/labstack/echo / GET

Method GET

echo.go:508–510  ·  view source on GitHub ↗

GET registers a new GET 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

506// GET registers a new GET route for a path with matching handler in the router
507// with optional route-level middleware. Panics on error.
508func (e *Echo) GET(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo {
509 return e.Add(http.MethodGet, path, h, m...)
510}
511
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.

Calls 1

AddMethod · 0.95