Versions in this module Expand all Collapse all v1 v1.0.1 Nov 7, 2023 v1.0.0 Jun 22, 2023 Changes in this version + const DefaultMaxBody + const DefaultRetryTimes + const DefaultUserAgent + var DefaultRetryHTTPCodes = []int + var ErrNoCookieJar = errors.New("cookie jar is not available") + func ConvertHeaderToMap(header http.Header) map[string]interface + func ConvertMapToHeader(m map[string]interface{}) http.Header + func NewRedirectionHandler(maxRedirect int) func(req *http.Request, via []*http.Request) error + func RoundRobinProxy(proxyURLs ...string) func(*http.Request) (*url.URL, error) + func SetDefaultHeader(header http.Header, key string, value string) http.Header + type Client struct + func NewClient(opt *Options) *Client + func (c *Client) Cookies(URL string) []*http.Cookie + func (c *Client) DoRequest(req *Request) (resp *Response, err error) + func (c *Client) SetCookies(URL string, cookies []*http.Cookie) error + type Options struct + AllocatorOptions []chromedp.ExecAllocatorOption + CharsetDetectDisabled bool + MaxBodySize int64 + PreActions []chromedp.Action + ProxyFunc func(*http.Request) (*url.URL, error) + RemoteAllocatorURL string + RetryHTTPCodes []int + RetryTimes int + type ProxyURLKey int + type Request struct + Actions []chromedp.Action + Cancelled bool + Encoding string + Meta map[string]interface{} + Rendered bool + Synchronized bool + func NewRequest(ctx context.Context, method, url string, body io.Reader) (*Request, error) + func (r *Request) Cancel() + func (r *Request) RetryCount() int + func (r *Request) RetryCountInc() int + type Response struct + Body []byte + HTMLDoc *goquery.Document + Request *Request + func (r *Response) IsHTML() bool + func (r *Response) JoinURL(relativeURL string) string