mirror of
https://github.com/labstack/echo.git
synced 2024-11-24 08:22:21 +02:00
documentation: changed description for Bind()
method of Context interface
. Because Bind()
` binds not only request body, but also path and query params
This commit is contained in:
parent
ec642f7df1
commit
f22ba6725c
@ -100,8 +100,8 @@ type (
|
||||
// Set saves data in the context.
|
||||
Set(key string, val interface{})
|
||||
|
||||
// Bind binds the request body into provided type `i`. The default binder
|
||||
// does it based on Content-Type header.
|
||||
// Bind binds path params, query params and the request body into provided type `i`. The default binder
|
||||
// binds body based on Content-Type header.
|
||||
Bind(i interface{}) error
|
||||
|
||||
// Validate validates provided `i`. It is usually called after `Context#Bind()`.
|
||||
|
Loading…
Reference in New Issue
Block a user