Binding describes the interface which needs to be implemented for binding the data present in the request such as JSON request body, query parameters or the form POST.
| 30 | // data present in the request such as JSON request body, query parameters or |
| 31 | // the form POST. |
| 32 | type Binding interface { |
| 33 | Name() string |
| 34 | Bind(*http.Request, any) error |
| 35 | } |
| 36 | |
| 37 | // BindingBody adds BindBody method to Binding. BindBody is similar with Bind, |
| 38 | // but it reads the body from supplied bytes instead of req.Body. |
nothing calls this directly
no outgoing calls
no test coverage detected