Versions in this module Expand all Collapse all v1 v1.1.0 Mar 5, 2024 Changes in this version + type Client struct + func NewClient(options ClientOptions) (*Client, error) + func (c *Client) ClearCookies() error + func (c *Client) ClearHeaders() + func (c *Client) ClearProxy() + func (c *Client) Do(options RequestOptions) (*http.Response, []byte, error) + func (c *Client) GetCookies(baseURL string) ([]*http.Cookie, error) + func (c *Client) SetCookies(URL string, cookieMap map[string]string) error + func (c *Client) SetFollowRedirects(shouldRedirect bool) + func (c *Client) SetHeaders(headers map[string]string) + func (c *Client) SetProxy(proxy string) error + func (c *Client) SetTimeout(timeout time.Duration) + func (c *Client) SetTransport(transport http.RoundTripper) + type ClientOptions struct + Cookies ClientOptionsCookies + FollowRedirects bool + Headers map[string]string + Proxy string + Timeout time.Duration + Transport http.RoundTripper + type ClientOptionsCookies struct + BaseURL string + Cookies map[string]string + type RequestOptions struct + Body io.Reader + Cookies map[string]string + Headers map[string]string + Method string + Proxy string + ReadResponseBody bool + URL string