Documentation ¶
Index ¶
- Variables
- type Addon
- type Builder
- type Request
- func (req *Request) AddHeader(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) DelHeader(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) Execute(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) ExecuteStatus(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) FinishedAt(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) GetBody(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) GetBodyArrayBuffer(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) GetHeader(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) GetID(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) GetMethod(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) GetProxy(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) GetURL(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) HeaderFields(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) HeaderValues(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) ResetHeader(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) ResponseBody(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) ResponseBodyArrayBuffer(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) ResponseHeader(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) ResponseHeaderFields(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) ResponseHeaderValues(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) ResponseStatusCode(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) SetBody(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) SetBodyArrayBuffer(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) SetHeader(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) SetMethod(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) SetProxy(call goja.FunctionCall, r *goja.Runtime) goja.Value
- func (req *Request) SetURL(call goja.FunctionCall, r *goja.Runtime) goja.Value
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBuilder = func(r *goja.Runtime, req *Request) *goja.Object {
obj := r.NewObject()
obj.Set("GetID", req.GetID)
obj.Set("GetURL", req.GetURL)
obj.Set("SetURL", req.SetURL)
obj.Set("GetProxy", req.GetProxy)
obj.Set("SetProxy", req.SetProxy)
obj.Set("GetMethod", req.GetMethod)
obj.Set("SetMethod", req.SetMethod)
obj.Set("GetBody", req.GetBody)
obj.Set("GetBodyArrayBuffer", req.GetBodyArrayBuffer)
obj.Set("SetBody", req.SetBody)
obj.Set("FinishedAt", req.FinishedAt)
obj.Set("ExecuteStatus", req.ExecuteStatus)
obj.Set("ResetHeader", req.ResetHeader)
obj.Set("SetHeader", req.SetHeader)
obj.Set("AddHeader", req.AddHeader)
obj.Set("DelHeader", req.DelHeader)
obj.Set("GetHeader", req.GetHeader)
obj.Set("HeaderValues", req.HeaderValues)
obj.Set("HeaderFields", req.HeaderFields)
obj.Set("ResponseStatusCode", req.ResponseStatusCode)
obj.Set("ResponseBody", req.ResponseBody)
obj.Set("ResponseBodyArrayBuffer", req.ResponseBodyArrayBuffer)
obj.Set("ResponseHeader", req.ResponseHeader)
obj.Set("ResponseHeaderValues", req.ResponseHeaderValues)
obj.Set("ResponseHeaderFields", req.ResponseHeaderFields)
obj.Set("Execute", req.Execute)
return obj
}
Functions ¶
This section is empty.
Types ¶
type Request ¶
func (*Request) ExecuteStatus ¶
func (*Request) FinishedAt ¶
func (*Request) GetBodyArrayBuffer ¶
func (*Request) HeaderFields ¶
func (*Request) HeaderValues ¶
func (*Request) ResetHeader ¶
func (*Request) ResponseBody ¶
func (*Request) ResponseBodyArrayBuffer ¶
func (*Request) ResponseHeader ¶
func (*Request) ResponseHeaderFields ¶
func (*Request) ResponseHeaderValues ¶
func (*Request) ResponseStatusCode ¶
func (*Request) SetBodyArrayBuffer ¶
Click to show internal directories.
Click to hide internal directories.