Versions in this module Expand all Collapse all v0 v0.1.7 Jan 5, 2026 v0.1.6 Jan 1, 2026 Changes in this version + const DefaultDialTimeout + const DefaultIdleConnTimeout + const DefaultKeepAliveInterval + const DefaultMaxConnsPerHost + const DefaultMaxIdleConns + const DefaultMaxIdleConnsPerHost + const DefaultRequestTimeout + const DefaultResponseHeaderTimeout + const DefaultTLSHandshakeTimeout + const SecureMinTLSVersion + func DecompressResponse(resp *http.Response) error + func DialContext(ctx context.Context, network, address string, config *DialerConfig) (net.Conn, error) + func DialTCPContext(ctx context.Context, network, address string, config *DialerConfig) (net.Conn, error) + func NewClient(config *ClientConfig) *http.Client + func NewHTTPTransport(config *ClientConfig) *http.Transport + type ClientConfig struct + CookieJar http.CookieJar + DialerConfig *DialerConfig + DisableKeepAlives bool + IdleConnTimeout time.Duration + InsecureSkipVerify bool + Logger Logger + MaxConnsPerHost int + MaxIdleConns int + MaxIdleConnsPerHost int + ProxyURL *url.URL + RequestTimeout time.Duration + TLSConfig *tls.Config + func NewBrowserClientConfig() *ClientConfig + type CompressionMiddleware struct + Transport http.RoundTripper + func NewCompressionMiddleware(transport http.RoundTripper) *CompressionMiddleware + func (cm *CompressionMiddleware) RoundTrip(req *http.Request) (*http.Response, error) + type DialerConfig struct + KeepAlive time.Duration + NoDelay bool + ProxyURL *url.URL + Resolver *net.Resolver + TLSConfig *tls.Config + Timeout time.Duration + func NewDialerConfig() *DialerConfig + func (c *DialerConfig) Clone() *DialerConfig + type HTTPParser struct + func NewHTTPParser(logger *zap.Logger) *HTTPParser + func (p *HTTPParser) ParsePipelinedResponses(conn io.Reader, expectedTotal int) ([]*http.Response, error) + type InterceptionProxy struct + func NewInterceptionProxy(caCert, caKey []byte, transportConfig *ProxyTransportConfig, ...) (*InterceptionProxy, error) + func (ip *InterceptionProxy) AddRequestHook(handler RequestHandler) + func (ip *InterceptionProxy) AddResponseHook(handler ResponseHandler) + type Logger interface + Debug func(msg string, args ...interface{}) + Error func(msg string, args ...interface{}) + Info func(msg string, args ...interface{}) + Warn func(msg string, args ...interface{}) + type NopLogger struct + func (n *NopLogger) Debug(msg string, args ...interface{}) + func (n *NopLogger) Error(msg string, args ...interface{}) + func (n *NopLogger) Info(msg string, args ...interface{}) + func (n *NopLogger) Warn(msg string, args ...interface{}) + type ProxyTransportConfig struct + DialerConfig *DialerConfig + type RequestHandler func(*http.Request, *goproxy.ProxyCtx) (*http.Request, *http.Response) + type ResponseHandler func(*http.Response, *goproxy.ProxyCtx) *http.Response