Versions in this module Expand all Collapse all v0 v0.0.3 Sep 22, 2022 Changes in this version + var ErrBatchForbiddenInInitContext = common.NewInitContextError("Using batch in the init context is not supported") + var ErrHTTPForbiddenInInitContext = common.NewInitContextError("Making http requests in the init context is not supported") + var ErrJarForbiddenInInitContext = common.NewInitContextError("Making cookie jars in the init context is not supported") + type Client struct + func (c *Client) Batch(reqsV ...goja.Value) (interface{}, error) + func (c *Client) Request(method string, url goja.Value, args ...goja.Value) (*Response, error) + func (c *Client) SetResponseCallback(val goja.Value) + type CookieJar struct + Jar *cookiejar.Jar + func (j CookieJar) Clear(url string) error + func (j CookieJar) CookiesForURL(url string) map[string][]string + func (j CookieJar) Delete(url, name string) error + func (j CookieJar) Set(url, name, value string, opts goja.Value) (bool, error) + type FileData struct + ContentType string + Data []byte + Filename string + type ModuleInstance struct + func (mi *ModuleInstance) Exports() modules.Exports + func (mi *ModuleInstance) URL(parts []string, pieces ...string) (httpext.URL, error) + type Response struct + func (res *Response) ClickLink(args ...goja.Value) (*Response, error) + func (res *Response) HTML(selector ...string) html.Selection + func (res *Response) JSON(selector ...string) goja.Value + func (res *Response) SubmitForm(args ...goja.Value) (*Response, error) + type RootModule struct + func New() *RootModule + func (r *RootModule) NewModuleInstance(vu modules.VU) modules.Instance