Documentation ¶
Index ¶
- type Context
- func (c *Context) ContentType() string
- func (c *Context) Cookie(name string) *lib.Data
- func (c *Context) Domain() string
- func (c *Context) DumpRequest() string
- func (c *Context) FullPath() string
- func (c *Context) GetHeader(key string) string
- func (c *Context) Host() string
- func (c *Context) HttpOrigin() string
- func (c *Context) Init()
- func (c *Context) Reset()
- func (c *Context) Router() string
- func (c *Context) SetCookie(name, value string)
- func (c *Context) SetCookieByExpire(name, value string, expire int)
- func (c *Context) SetCookies(name, value string, maxAge int, path, domain string, secure, httpOnly bool)
- func (c *Context) SetSameSite(sameSite http.SameSite)
- type HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Request *http.Request Writer http.ResponseWriter Input *input.Input Output *output.Output Session session.Sessioner RouterPath string Tmpl *tmpl.Tmpl // contains filtered or unexported fields }
Context 上下文对象
func (*Context) SetCookieByExpire ¶
SetCookieByExpire
Click to show internal directories.
Click to hide internal directories.