Documentation ¶
Index ¶
- Variables
- type Addon
- type Builder
- type Request
- func (req *Request) AddHeader(L *lua.LState) int
- func (req *Request) DelHeader(L *lua.LState) int
- func (req *Request) Execute(L *lua.LState) int
- func (req *Request) ExecuteStatus(L *lua.LState) int
- func (req *Request) FinishedAt(L *lua.LState) int
- func (req *Request) GetBody(L *lua.LState) int
- func (req *Request) GetHeader(L *lua.LState) int
- func (req *Request) GetID(L *lua.LState) int
- func (req *Request) GetMethod(L *lua.LState) int
- func (req *Request) GetProxy(L *lua.LState) int
- func (req *Request) GetURL(L *lua.LState) int
- func (req *Request) HeaderFields(L *lua.LState) int
- func (req *Request) HeaderValues(L *lua.LState) int
- func (req *Request) PushStrings(L *lua.LState, data []string)
- func (req *Request) ResetHeader(L *lua.LState) int
- func (req *Request) ResponseBody(L *lua.LState) int
- func (req *Request) ResponseHeader(L *lua.LState) int
- func (req *Request) ResponseHeaderFields(L *lua.LState) int
- func (req *Request) ResponseHeaderValues(L *lua.LState) int
- func (req *Request) ResponseStatusCode(L *lua.LState) int
- func (req *Request) SetBody(L *lua.LState) int
- func (req *Request) SetHeader(L *lua.LState) int
- func (req *Request) SetMethod(L *lua.LState) int
- func (req *Request) SetProxy(L *lua.LState) int
- func (req *Request) SetURL(L *lua.LState) int
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBuilder = func(L *lua.LState, req *Request) *lua.LTable {
t := L.NewTable()
t.RawSetString("GetID", L.NewFunction(req.GetID))
t.RawSetString("GetURL", L.NewFunction(req.GetURL))
t.RawSetString("SetURL", L.NewFunction(req.SetURL))
t.RawSetString("GetProxy", L.NewFunction(req.GetProxy))
t.RawSetString("SetProxy", L.NewFunction(req.SetProxy))
t.RawSetString("GetMethod", L.NewFunction(req.GetMethod))
t.RawSetString("SetMethod", L.NewFunction(req.SetMethod))
t.RawSetString("GetBody", L.NewFunction(req.GetBody))
t.RawSetString("SetBody", L.NewFunction(req.SetBody))
t.RawSetString("FinishedAt", L.NewFunction(req.FinishedAt))
t.RawSetString("ExecuteStatus", L.NewFunction(req.ExecuteStatus))
t.RawSetString("ResetHeader", L.NewFunction(req.ResetHeader))
t.RawSetString("SetHeader", L.NewFunction(req.SetHeader))
t.RawSetString("AddHeader", L.NewFunction(req.AddHeader))
t.RawSetString("DelHeader", L.NewFunction(req.DelHeader))
t.RawSetString("GetHeader", L.NewFunction(req.GetHeader))
t.RawSetString("HeaderValues", L.NewFunction(req.HeaderValues))
t.RawSetString("HeaderFields", L.NewFunction(req.HeaderFields))
t.RawSetString("ResponseStatusCode", L.NewFunction(req.ResponseStatusCode))
t.RawSetString("ResponseBody", L.NewFunction(req.ResponseBody))
t.RawSetString("ResponseHeader", L.NewFunction(req.ResponseHeader))
t.RawSetString("ResponseHeaderValues", L.NewFunction(req.ResponseHeaderValues))
t.RawSetString("ResponseHeaderFields", L.NewFunction(req.ResponseHeaderFields))
t.RawSetString("Execute", L.NewFunction(req.Execute))
return t
}
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.