Documentation ¶
Index ¶
- type Request
- func (this *Request) Bind(obj any) error
- func (this *Request) BindHeader(obj any) error
- func (this *Request) BindJSON(i any) error
- func (this *Request) BindQuery(obj any) error
- func (this *Request) BindUri(obj any) error
- func (this *Request) BindXML(obj any) error
- func (this *Request) BindYAML(obj any) error
- func (this *Request) ClientIP() string
- func (this *Request) ContentType() string
- func (this *Request) Cookie(name string) (string, error)
- func (this *Request) DefaultPostForm(key, defaultValue string) string
- func (this *Request) DefaultQuery(key string, def any) string
- func (this *Request) FormFile(name string) (*multipart.FileHeader, error)
- func (this *Request) FullPath() string
- func (this *Request) GetContext() *router.Context
- func (this *Request) GetHeader(key string) string
- func (this *Request) GetPostForm(key string) (string, bool)
- func (this *Request) GetPostFormArray(key string) ([]string, bool)
- func (this *Request) GetPostFormMap(key string) (map[string]string, bool)
- func (this *Request) GetQuery(key string) (string, bool)
- func (this *Request) GetQueryArray(key string) ([]string, bool)
- func (this *Request) GetQueryMap(key string) (map[string]string, bool)
- func (this *Request) GetRawData() ([]byte, error)
- func (this *Request) IsWebsocket() bool
- func (this *Request) JSON(code int, data any)
- func (this *Request) MultipartForm() (*multipart.Form, error)
- func (this *Request) MustBindWith(obj any, b router.Binding) error
- func (this *Request) Param(key string) string
- func (this *Request) PostForm(key string) string
- func (this *Request) PostFormArray(key string) []string
- func (this *Request) PostFormMap(key string) map[string]string
- func (this *Request) Query(key string) string
- func (this *Request) QueryArray(key string) []string
- func (this *Request) QueryMap(key string) map[string]string
- func (this *Request) RemoteIP() string
- func (this *Request) ShouldBind(obj any) error
- func (this *Request) ShouldBindBodyWith(obj any, bb router.BindingBody) error
- func (this *Request) ShouldBindHeader(obj any) error
- func (this *Request) ShouldBindJSON(obj any) error
- func (this *Request) ShouldBindJSONWith(obj any) error
- func (this *Request) ShouldBindQuery(obj any) error
- func (this *Request) ShouldBindUri(obj any) error
- func (this *Request) ShouldBindWith(obj any, b router.Binding) error
- func (this *Request) ShouldBindXML(obj any) error
- func (this *Request) ShouldBindYAML(obj any) error
- func (this *Request) Stream(step func(w io.Writer) bool) bool
- func (this *Request) Value(key any) any
- func (this *Request) WithContext(ctx *router.Context) *Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
*
- 请求 *
- @create 2021-9-15
- @author deatil
func (*Request) DefaultPostForm ¶
表单请求
func (*Request) FormFile ¶
func (this *Request) FormFile(name string) (*multipart.FileHeader, error)
表单文件上传
func (*Request) GetPostFormArray ¶
表单请求
func (*Request) GetPostFormMap ¶
表单请求
func (*Request) GetQueryArray ¶
获取数组
func (*Request) GetQueryMap ¶
GetQueryMap
func (*Request) MultipartForm ¶
表单批量返回
func (*Request) MustBindWith ¶
绑定 MustBindWith
func (*Request) ShouldBind ¶
func (*Request) ShouldBindBodyWith ¶
func (this *Request) ShouldBindBodyWith(obj any, bb router.BindingBody) error
func (*Request) ShouldBindHeader ¶
func (*Request) ShouldBindJSON ¶
func (*Request) ShouldBindJSONWith ¶
func (*Request) ShouldBindQuery ¶
func (*Request) ShouldBindUri ¶
func (*Request) ShouldBindWith ¶
func (*Request) ShouldBindXML ¶
func (*Request) ShouldBindYAML ¶
Click to show internal directories.
Click to hide internal directories.