proxy

package
v0.0.0-...-92dfe4c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvWithProxy

func EnvWithProxy(u *url.URL) []string

EnvWithProxy returns os.Environ(), with a https_proxy env, if the given url needs to be proxied.

func GetProxyURL

func GetProxyURL() string

GetProxyURL returns proxy url

func Match

func Match(u string) bool

Match return true if url needs to be proxied

func Proxy

func Proxy() func(req *http.Request) (*url.URL, error)

Proxy returns the system proxy

Types

This section is empty.

Jump to

Keyboard shortcuts

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