mirror of https://github.com/gin-gonic/gin.git
now you can replace binding.Form parser
This commit is contained in:
parent
a331dc6a31
commit
0c40e2d085
|
@ -72,17 +72,17 @@ var Validator StructValidator = &defaultValidator{}
|
||||||
// These implement the Binding interface and can be used to bind the data
|
// These implement the Binding interface and can be used to bind the data
|
||||||
// present in the request to struct instances.
|
// present in the request to struct instances.
|
||||||
var (
|
var (
|
||||||
JSON = jsonBinding{}
|
JSON BindingBody = jsonBinding{}
|
||||||
XML = xmlBinding{}
|
XML BindingBody = xmlBinding{}
|
||||||
Form = formBinding{}
|
Form Binding = formBinding{}
|
||||||
Query = queryBinding{}
|
Query Binding = queryBinding{}
|
||||||
FormPost = formPostBinding{}
|
FormPost Binding = formPostBinding{}
|
||||||
FormMultipart = formMultipartBinding{}
|
FormMultipart Binding = formMultipartBinding{}
|
||||||
ProtoBuf = protobufBinding{}
|
ProtoBuf BindingBody = protobufBinding{}
|
||||||
MsgPack = msgpackBinding{}
|
MsgPack BindingBody = msgpackBinding{}
|
||||||
YAML = yamlBinding{}
|
YAML BindingBody = yamlBinding{}
|
||||||
Uri = uriBinding{}
|
Uri BindingUri = uriBinding{}
|
||||||
Header = headerBinding{}
|
Header Binding = headerBinding{}
|
||||||
)
|
)
|
||||||
|
|
||||||
// Default returns the appropriate Binding instance based on the HTTP method
|
// Default returns the appropriate Binding instance based on the HTTP method
|
||||||
|
|
Loading…
Reference in New Issue