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)
| 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. |
| 478 | func (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`. |