Skip to content
Myr

feat(binding): support override default binding implement (#3514)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ssfyn · committed by GitHub · parent d4e4136 · Browse files · 1 file+12 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−12 removed

  • other:+12 added−12 removed

1 file+12 added−12 removed

modified:binding/binding.go+12 added-12 removed
71 unmodified lines
7273// These implement the Binding interface and can be used to bind the data74// present in the request to struct instances.75var (76 JSON = jsonBinding{}77 XML = xmlBinding{}78 Form = formBinding{}79 Query = queryBinding{}80 FormPost = formPostBinding{}81 FormMultipart = formMultipartBinding{}82 ProtoBuf = protobufBinding{}83 MsgPack = msgpackBinding{}84 YAML = yamlBinding{}85 Uri = uriBinding{}86 Header = headerBinding{}87 TOML = tomlBinding{}76 JSON BindingBody = jsonBinding{}77 XML BindingBody = xmlBinding{}78 Form Binding = formBinding{}79 Query Binding = queryBinding{}80 FormPost Binding = formPostBinding{}81 FormMultipart Binding = formMultipartBinding{}82 ProtoBuf BindingBody = protobufBinding{}83 MsgPack BindingBody = msgpackBinding{}84 YAML BindingBody = yamlBinding{}85 Uri BindingUri = uriBinding{}86 Header Binding = headerBinding{}87 TOML BindingBody = tomlBinding{}88)8990// Default returns the appropriate Binding instance based on the HTTP method91// and the content type.
31 unmodified lines