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

Method POST

echo.go:532–534  ·  view source on GitHub ↗

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

530// POST registers a new POST route for a path with matching handler in the
531// router with optional route-level middleware. Panics on error.
532func (e *Echo) POST(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo {
533 return e.Add(http.MethodPost, path, h, m...)
534}
535
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.

Callers 11

BenchmarkBind_JSONFunction · 0.45
TestRouterParam1466Function · 0.45
TestGroup_POSTFunction · 0.45
TestEchoPostFunction · 0.45
TestCSRFErrorHandlingFunction · 0.45
TestRequestLoggerOKFunction · 0.45
TestTestRequestLoggerFunction · 0.45
TestCorsHeadersFunction · 0.45

Calls 1

AddMethod · 0.95

Tested by 11

BenchmarkBind_JSONFunction · 0.36
TestRouterParam1466Function · 0.36
TestGroup_POSTFunction · 0.36
TestEchoPostFunction · 0.36
TestCSRFErrorHandlingFunction · 0.36
TestRequestLoggerOKFunction · 0.36
TestTestRequestLoggerFunction · 0.36
TestCorsHeadersFunction · 0.36