Versions in this module Expand all Collapse all v1 v1.0.1 Oct 15, 2023 Changes in this version + type Options struct + Debugf func(format string, v ...interface{}) + DialContext func(ctx context.Context, network, addr string) (net.Conn, error) + DialTLSContext func(ctx context.Context, network, addr string) (net.Conn, error) + DisableCompression bool + DisableKeepAlives bool + Dump *dump.Dumper + EnableH2C bool + ExpectContinueTimeout time.Duration + GetProxyConnectHeader func(ctx context.Context, proxyURL *url.URL, target string) (http.Header, error) + IdleConnTimeout time.Duration + MaxConnsPerHost int + MaxIdleConns int + MaxIdleConnsPerHost int + MaxResponseHeaderBytes int64 + OnProxyConnectResponse func(ctx context.Context, proxyURL *url.URL, connectReq *http.Request, ...) error + Proxy func(*http.Request) (*url.URL, error) + ProxyConnectHeader http.Header + ReadBufferSize int + ResponseHeaderTimeout time.Duration + TLSClientConfig *tls.Config + TLSHandshakeContext func(ctx context.Context, addr string, plainConn net.Conn) (conn net.Conn, tlsState *tls.ConnectionState, err error) + TLSHandshakeTimeout time.Duration + WriteBufferSize int + func (o Options) Clone() Options