Documentation ¶
Index ¶
Constants ¶
View Source
const ( MIMEJSON = "application/json" MIMEMultipartPOSTForm = "multipart/form-data" )
Content-Type MIME of the most common data formats.
Variables ¶
View Source
var ( JSON = jsonBinding{} Form = formBinding{} Query = queryBinding{} FormMultipart = formMultipartBinding{} Header = headerBinding{} )
These implement the Binding interface and can be used to bind the data present in the request to struct instances.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
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.
type BindingBody ¶
BindingBody adds BindBody method to Binding. BindBody is similar with Bind, but it reads the body from supplied bytes instead of req.Body.
Click to show internal directories.
Click to hide internal directories.