MCPcopy
hub / github.com/gin-gonic/gin / Binding

Interface Binding

binding/binding.go:32–35  ·  binding/binding.go::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.

Source from the content-addressed store, hash-verified

30// data present in the request such as JSON request body, query parameters or
31// the form POST.
32type 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.

Callers

nothing calls this directly

Implementers 13

queryBindingbinding/query.go
msgpackBindingbinding/msgpack.go
headerBindingbinding/header.go
formBindingbinding/form.go
formPostBindingbinding/form.go
formMultipartBindingbinding/form.go
xmlBindingbinding/xml.go
yamlBindingbinding/yaml.go
tomlBindingbinding/toml.go
jsonBindingbinding/json.go
bsonBindingbinding/bson.go
protobufBindingbinding/protobuf.go

Calls

no outgoing calls

Tested by

no test coverage detected