Documentation ¶
Index ¶
- func CookieToTable(L *lua.LState, c *http.Cookie) *lua.LTable
- func MapToTable(L *lua.LState, values map[string][]string) *lua.LTable
- func RequestToTable(L *lua.LState, r *http.Request) *lua.LTable
- type WebContext
- func (ctx *WebContext) BasicAuth(L *lua.LState) int
- func (ctx *WebContext) Cookie(L *lua.LState) int
- func (ctx *WebContext) Cookies(L *lua.LState) int
- func (ctx *WebContext) FormValue(L *lua.LState) int
- func (ctx *WebContext) HeaderAdd(L *lua.LState) int
- func (ctx *WebContext) HeaderDel(L *lua.LState) int
- func (ctx *WebContext) HeaderGet(L *lua.LState) int
- func (ctx *WebContext) HeaderSet(L *lua.LState) int
- func (ctx *WebContext) PostFormValue(L *lua.LState) int
- func (ctx *WebContext) ProtoAtLeast(L *lua.LState) int
- func (ctx *WebContext) Redirect(L *lua.LState) int
- func (ctx *WebContext) Referer(L *lua.LState) int
- func (ctx *WebContext) Request(L *lua.LState) int
- func (ctx *WebContext) RequestBody(L *lua.LState) int
- func (ctx *WebContext) RequestForm(L *lua.LState) int
- func (ctx *WebContext) RequestHeader(L *lua.LState) int
- func (ctx *WebContext) SetCookie(L *lua.LState) int
- func (ctx *WebContext) UrlPath(L *lua.LState) int
- func (ctx *WebContext) UrlQuery(L *lua.LState) int
- func (ctx *WebContext) UserAgent(L *lua.LState) int
- func (ctx *WebContext) WebContext(L *lua.LState) *lua.LTable
- func (ctx *WebContext) Write(L *lua.LState) int
- func (ctx *WebContext) WriteHeader(L *lua.LState) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CookieToTable ¶
func MapToTable ¶
func RequestToTable ¶
Types ¶
type WebContext ¶
type WebContext struct {
// contains filtered or unexported fields
}
func NewWebContext ¶
func NewWebContext(w http.ResponseWriter, r *http.Request) *WebContext
func (*WebContext) BasicAuth ¶
func (ctx *WebContext) BasicAuth(L *lua.LState) int
func (*WebContext) Cookie ¶
func (ctx *WebContext) Cookie(L *lua.LState) int
func (*WebContext) Cookies ¶
func (ctx *WebContext) Cookies(L *lua.LState) int
func (*WebContext) FormValue ¶
func (ctx *WebContext) FormValue(L *lua.LState) int
func (*WebContext) HeaderAdd ¶
func (ctx *WebContext) HeaderAdd(L *lua.LState) int
func (*WebContext) HeaderDel ¶
func (ctx *WebContext) HeaderDel(L *lua.LState) int
func (*WebContext) HeaderGet ¶
func (ctx *WebContext) HeaderGet(L *lua.LState) int
func (*WebContext) HeaderSet ¶
func (ctx *WebContext) HeaderSet(L *lua.LState) int
func (*WebContext) PostFormValue ¶
func (ctx *WebContext) PostFormValue(L *lua.LState) int
func (*WebContext) ProtoAtLeast ¶
func (ctx *WebContext) ProtoAtLeast(L *lua.LState) int
func (*WebContext) Redirect ¶
func (ctx *WebContext) Redirect(L *lua.LState) int
func (*WebContext) Referer ¶
func (ctx *WebContext) Referer(L *lua.LState) int
func (*WebContext) Request ¶
func (ctx *WebContext) Request(L *lua.LState) int
func (*WebContext) RequestBody ¶
func (ctx *WebContext) RequestBody(L *lua.LState) int
func (*WebContext) RequestForm ¶
func (ctx *WebContext) RequestForm(L *lua.LState) int
func (*WebContext) RequestHeader ¶
func (ctx *WebContext) RequestHeader(L *lua.LState) int
func (*WebContext) SetCookie ¶
func (ctx *WebContext) SetCookie(L *lua.LState) int
func (*WebContext) UrlPath ¶
func (ctx *WebContext) UrlPath(L *lua.LState) int
func (*WebContext) UrlQuery ¶
func (ctx *WebContext) UrlQuery(L *lua.LState) int
func (*WebContext) UserAgent ¶
func (ctx *WebContext) UserAgent(L *lua.LState) int
func (*WebContext) WebContext ¶
func (ctx *WebContext) WebContext(L *lua.LState) *lua.LTable
func (*WebContext) Write ¶
func (ctx *WebContext) Write(L *lua.LState) int
func (*WebContext) WriteHeader ¶
func (ctx *WebContext) WriteHeader(L *lua.LState) int
Click to show internal directories.
Click to hide internal directories.