Documentation
¶
Index ¶
- type Context
- func (this *Context) Bind(v interface{})
- func (this *Context) Body() []byte
- func (this *Context) Cookie(k string) *http.Cookie
- func (this *Context) CookieParameter(k string) *_parameter.Parameter
- func (this *Context) CookieValue(k string, v string) string
- func (this *Context) CookieValueAll() map[string]string
- func (this *Context) File(k string) []*multipart.FileHeader
- func (this *Context) GetParameter(k string) *_parameter.Parameter
- func (this *Context) GetValue(k string, v string) string
- func (this *Context) GetValueAll() map[string]string
- func (this *Context) JSON(data any)
- func (this *Context) PostParameter(k string) *_parameter.Parameter
- func (this *Context) PostValue(k string, v string) string
- func (this *Context) PostValueAll() map[string]string
- func (this *Context) REDIRECT(uri string)
- func (this *Context) RequestParameter(k string) *_parameter.Parameter
- func (this *Context) RequestValue(k string, v string) string
- func (this *Context) RequestValueAll() map[string]string
- func (this *Context) ServerParameter(k string) *_parameter.Parameter
- func (this *Context) ServerValue(k string, v string) string
- func (this *Context) ServerValueAll() map[string]string
- func (this *Context) SetCookie(cookie *http.Cookie) *Context
- func (this *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{}
GET map[string]string
POST map[string]string
REQUEST map[string]string
COOKIE map[string]*http.Cookie
SERVER map[string]string
ENV map[string]string
BODY []byte
FILE map[string][]*multipart.FileHeader
// contains filtered or unexported fields
}
func (*Context) CookieParameter ¶
func (this *Context) CookieParameter(k string) *_parameter.Parameter
func (*Context) CookieValueAll ¶
func (*Context) GetParameter ¶
func (this *Context) GetParameter(k string) *_parameter.Parameter
func (*Context) GetValueAll ¶
func (*Context) PostParameter ¶
func (this *Context) PostParameter(k string) *_parameter.Parameter
func (*Context) PostValueAll ¶
func (*Context) RequestParameter ¶
func (this *Context) RequestParameter(k string) *_parameter.Parameter
func (*Context) RequestValueAll ¶
func (*Context) ServerParameter ¶
func (this *Context) ServerParameter(k string) *_parameter.Parameter
func (*Context) ServerValueAll ¶
Click to show internal directories.
Click to hide internal directories.