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