Documentation
¶
Index ¶
- type Context
- func (c *Context) Bind(v interface{})
- func (c *Context) BindBody(v interface{})
- func (c *Context) BindGet(v interface{})
- func (c *Context) BindPost(v interface{})
- func (c *Context) BindRequest(v interface{})
- func (c *Context) Body() []byte
- func (c *Context) Cookie(key string) *_parameter.Parameter
- func (c *Context) CookieAll() map[string]string
- func (c *Context) File(key string) *_parameter.Parameter
- func (c *Context) FileAll() map[string][]*multipart.FileHeader
- func (c *Context) Get(key string) *_parameter.Parameter
- func (c *Context) GetAll() map[string]interface{}
- func (c *Context) Header(key string) *_parameter.Parameter
- func (c *Context) HeaderAll() map[string]string
- func (c *Context) JSON(data any)
- func (c *Context) Post(key string) *_parameter.Parameter
- func (c *Context) PostAll() map[string]interface{}
- func (c *Context) REDIRECT(uri string)
- func (c *Context) Request(key string) *_parameter.Parameter
- func (c *Context) RequestAll() map[string]interface{}
- func (c *Context) Server(key string) *_parameter.Parameter
- func (c *Context) ServerAll() map[string]string
- func (c *Context) SetCookie(cookie *http.Cookie) *Context
- func (c *Context) SetHeader(k string, v string) *Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
TimeS int64 // 时间戳
STORE map[string]interface{} // 自定义存储
// contains filtered or unexported fields
}
func (*Context) BindRequest ¶ added in v1.2.0
func (c *Context) BindRequest(v interface{})
func (*Context) FileAll ¶ added in v1.2.0
func (c *Context) FileAll() map[string][]*multipart.FileHeader
func (*Context) Request ¶ added in v1.2.0
func (c *Context) Request(key string) *_parameter.Parameter
func (*Context) RequestAll ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.