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

Method Bind

context.go:478–480  ·  view source on GitHub ↗

Bind binds path params, query params and the request body into provided type `i`. The default binder binds body based on Content-Type header.

(i any)

Source from the content-addressed store, hash-verified

476// Bind binds path params, query params and the request body into provided type `i`. The default binder
477// binds body based on Content-Type header.
478func (c *Context) Bind(i any) error {
479 return c.echo.Binder.Bind(c, i)
480}
481
482// Validate validates provided `i`. It is usually called after `Context#Bind()`.
483// Validator must be registered using `Echo#Validator`.

Calls 1

BindMethod · 0.65