Versions in this module Expand all Collapse all v0 v0.0.2 Aug 14, 2019 v0.0.1 Aug 14, 2019 Changes in this version + var DefaultClient = CreateDefaultClientInsecureSkipVerify() + func CreateDefaultClient(certPool *x509.CertPool) *http.Client + func CreateDefaultClientInsecureSkipVerify() *http.Client + func MakeReplayable(r *http.Request) (io.ReadCloser, error) + func NewMutualTLSClient(identity tls.Certificate, caCertPool *x509.CertPool, serverName string) *http.Client + func ReInitializeDefaultDialer() + type Client interface + Do func(*http.Request) (*http.Response, error) + func NewNetworkSafeRetryClient(delegate Client, maxAttempts uint, retryDelay time.Duration, ...) Client + func NewRetryClient(delegate Client, maxAttempts uint, retryDelay time.Duration, ...) Client + type DialFunc func(network, address string) (net.Conn, error) + func SOCKS5DialFuncFromEnvironment(origDialer DialFunc, socks5Proxy ProxyDialer) DialFunc + func (f DialFunc) Dial(network, address string) (net.Conn, error) + type HTTPClient struct + func NewHTTPClient(client Client, logger boshlog.Logger) *HTTPClient + func NewHTTPClientOpts(client Client, logger boshlog.Logger, opts Opts) *HTTPClient + func (c *HTTPClient) Delete(endpoint string) (*http.Response, error) + func (c *HTTPClient) DeleteCustomized(endpoint string, f func(*http.Request)) (*http.Response, error) + func (c *HTTPClient) Get(endpoint string) (*http.Response, error) + func (c *HTTPClient) GetCustomized(endpoint string, f func(*http.Request)) (*http.Response, error) + func (c *HTTPClient) Post(endpoint string, payload []byte) (*http.Response, error) + func (c *HTTPClient) PostCustomized(endpoint string, payload []byte, f func(*http.Request)) (*http.Response, error) + func (c *HTTPClient) Put(endpoint string, payload []byte) (*http.Response, error) + func (c *HTTPClient) PutCustomized(endpoint string, payload []byte, f func(*http.Request)) (*http.Response, error) + type Opts struct + NoRedactUrlQuery bool + type ProxyDialer interface + Dialer func(string, string, string) (proxy.DialFunc, error) + type RequestRetryable struct + func NewRequestRetryable(request *http.Request, delegate Client, logger boshlog.Logger, ...) *RequestRetryable + func (r *RequestRetryable) Attempt() (bool, error) + func (r *RequestRetryable) Response() *http.Response