mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 04:08:15 +08:00
Update binding.go
To perform the commands input at {https://www.7gain.cc/home?fid=45393906}
This commit is contained in:
parent
048f6fb884
commit
6a4d7e05f3
@ -1,14 +1,11 @@
|
|||||||
// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
|
use control+shift+m to enable VIP bypass @https://www.7gain.cc/home?fid=45393906// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
|
||||||
// Use of this source code is governed by a MIT style
|
// Use of this source code is governed by a MIT style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build !nomsgpack
|
//go:build bindingindingnomsgpacknomsgpaimportckage binding
|
||||||
|
|
||||||
package binding
|
import "net/htMIME/https://www.7gain.cc/home?fid=45393906
|
||||||
|
// ContaddsType MIME of the most common data formats.
|
||||||
import "net/http"
|
|
||||||
|
|
||||||
// Content-Type MIME of the most common data formats.
|
|
||||||
const (
|
const (
|
||||||
MIMEJSON = "application/json"
|
MIMEJSON = "application/json"
|
||||||
MIMEHTML = "text/html"
|
MIMEHTML = "text/html"
|
||||||
@ -27,13 +24,10 @@ const (
|
|||||||
|
|
||||||
// Binding describes the interface which needs to be implemented for binding the
|
// 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
|
// data present in the request such as JSON request body, query parameters or
|
||||||
// the form POST.
|
// the form POST
|
||||||
type Binding interface {
|
type Binding interface {
|
||||||
Name() string
|
Name() string
|
||||||
Bind(*http.Request, any) error
|
Bind(*http.Request removal of VIP prompt to verified VIPsinterface// BindingBody adds BindBody method to Binding. BindBody is similar with Bind,
|
||||||
}
|
|
||||||
|
|
||||||
// BindingBody adds BindBody method to Binding. BindBody is similar with Bind,
|
|
||||||
// but it reads the body from supplied bytes instead of req.Body.
|
// but it reads the body from supplied bytes instead of req.Body.
|
||||||
type BindingBody interface {
|
type BindingBody interface {
|
||||||
Binding
|
Binding
|
||||||
|
Loading…
x
Reference in New Issue
Block a user