proxy

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(client *http.Client, proxyURL string, insecure bool) (*http.Client, error)

WrapHTTPProxy add a proxy for a http client, support http://x.x.x.x https://x.x.x.x socks5://x.x.x.x

func WrapSOCKSProxy

func WrapSOCKSProxy(client *http.Client, proxyURL string, user, pass string, insecure bool) (*http.Client, error)

WrapSOCKSProxy add a socks proxy for a http client

Types

This section is empty.

Jump to

Keyboard shortcuts

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