Versions in this module Expand all Collapse all v1 v1.0.1 Nov 8, 2024 v1.0.0 Nov 8, 2024 Changes in this version + func DefaultRetryIf(req *protocol.Request, resp *protocol.Response, err error) bool + func DoDeadline(ctx context.Context, req *protocol.Request, resp *protocol.Response, ...) error + func DoRequestFollowRedirects(ctx context.Context, req *protocol.Request, resp *protocol.Response, ...) (statusCode int, body []byte, err error) + func DoTimeout(ctx context.Context, req *protocol.Request, resp *protocol.Response, ...) error + func GetURL(ctx context.Context, dst []byte, url string, c Doer, ...) (statusCode int, body []byte, err error) + func GetURLDeadline(ctx context.Context, dst []byte, url string, deadline time.Time, c Doer, ...) (statusCode int, body []byte, err error) + func GetURLTimeout(ctx context.Context, dst []byte, url string, timeout time.Duration, c Doer, ...) (statusCode int, body []byte, err error) + func PostURL(ctx context.Context, dst []byte, url string, postArgs *protocol.Args, c Doer, ...) (statusCode int, body []byte, err error) + func StatusCodeIsRedirect(statusCode int) bool + type Doer interface + Do func(ctx context.Context, req *protocol.Request, resp *protocol.Response) error + type DynamicConfig struct + Addr string + IsTLS bool + ProxyURI *protocol.URI + type HostClient interface + CloseIdleConnections func() + ConnectionCount func() int + SetDynamicConfig func(dc *DynamicConfig) + ShouldRemove func() bool + type RetryIfFunc func(req *protocol.Request, resp *protocol.Response, err error) bool