Documentation ¶
Index ¶
- func NewConnectDialer(proxyURLStr string, UserAgent string) (proxy.ContextDialer, error)
- func NewJA3Transport(browser Browser, proxyURL string, config *utls.Config) (http.RoundTripper, error)
- func StringToSpec(ja3 string, userAgent string) (*utls.ClientHelloSpec, error)
- type Browser
- type ContextKeyHeader
- type JA3Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnectDialer ¶
func NewConnectDialer(proxyURLStr string, UserAgent string) (proxy.ContextDialer, error)
newConnectDialer creates a dialer to issue CONNECT requests and tunnel traffic via HTTP/S proxy. proxyUrlStr must provide Scheme and Host, may provide credentials and port. Example: https://username:password@golang.org:443
func NewJA3Transport ¶
func StringToSpec ¶
func StringToSpec(ja3 string, userAgent string) (*utls.ClientHelloSpec, error)
StringToSpec creates a ClientHelloSpec based on a JA3 string
Types ¶
type ContextKeyHeader ¶
type ContextKeyHeader struct{}
ContextKeyHeader Users of context.WithValue should define their own types for keys
Click to show internal directories.
Click to hide internal directories.