httpproxy

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2026 License: GPL-3.0, LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Proxy        url.URL
	TLSConfig    *tls.Config
	UpstreamDial func(ctx context.Context, network, address string) (net.Conn, error)
}

func NewClient

func NewClient(proxy url.URL, dial func(ctx context.Context, network, address string) (net.Conn, error)) *Client

func (*Client) Dial

func (client *Client) Dial(ctx context.Context, network, address string) (conn net.Conn, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL