proxy

package
v1.21.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvWithProxy added in v1.18.4

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