14 type ProxyFunc func(*http.Request) (*url.URL, error)
16 type NewClientOpts struct {
21 func NewClient(url_ *url.URL, opts NewClientOpts) Client {
25 Transport: &http.Transport{
27 TLSClientConfig: &tls.Config{
28 InsecureSkipVerify: true,
29 ServerName: opts.ServerName,
31 // This is for S3 trackers that hold connections open.
32 DisableKeepAlives: true,
38 func (cl Client) Close() error {
39 cl.hc.CloseIdleConnections()