tshttpproxy

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: BSD-3-Clause Imports: 5 Imported by: 31

Documentation

Overview

Package tshttpproxy contains Tailscale additions to httpproxy not available in golang.org/x/net/http/httpproxy. Notably, it aims to support Windows better.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthHeader

func GetAuthHeader(u *url.URL) (string, error)

GetAuthHeader returns the Authorization header value to send to proxy u.

func InvalidateCache

func InvalidateCache()

InvalidateCache invalidates the package-level cache for ProxyFromEnvironment.

It's intended to be called on network link/routing table changes.

func ProxyFromEnvironment

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

func SetTransportGetProxyConnectHeader

func SetTransportGetProxyConnectHeader(tr *http.Transport)

SetTarnsportGetProxyConnectHeader sets the provided Transport's GetProxyConnectHeader field, if the current build of Go supports it.

See https://github.com/golang/go/issues/41048.

Types

This section is empty.

Jump to

Keyboard shortcuts

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