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

Method PUT

echo.go:538–540  ·  view source on GitHub ↗

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

536// PUT registers a new PUT route for a path with matching handler in the
537// router with optional route-level middleware. Panics on error.
538func (e *Echo) PUT(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo {
539 return e.Add(http.MethodPut, path, h, m...)
540}
541
542// TRACE registers a new TRACE route for a path with matching handler in the
543// router with optional route-level middleware. Panics on error.

Callers 4

TestGroup_PUTFunction · 0.45
TestGroup_RouteNotFoundFunction · 0.45
TestEchoPutFunction · 0.45
TestEcho_RouteNotFoundFunction · 0.45

Calls 1

AddMethod · 0.95

Tested by 4

TestGroup_PUTFunction · 0.36
TestGroup_RouteNotFoundFunction · 0.36
TestEchoPutFunction · 0.36
TestEcho_RouteNotFoundFunction · 0.36