tshttpproxy

package
v0.0.0-...-ded95ce Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

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)

SetTransportGetProxyConnectHeader 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