http

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EdgeHTTPProxy

func EdgeHTTPProxy(forwardingAddress func(string) string, caList *x509.CertPool, clientCert *tls.Certificate, proxyForEdge func(*http.Request) (*url.URL, error)) http.Handler

func EdgeTransport

func EdgeTransport(caList *x509.CertPool, clientCert *tls.Certificate, proxyForEdge func(*http.Request) (*url.URL, error)) *http.Transport

Types

type SmartProxy

type SmartProxy struct {
	// contains filtered or unexported fields
}

func SmartHTTPProxy

func SmartHTTPProxy(forwardingAddress func(string) string, caList *x509.CertPool, clientCert *tls.Certificate, proxyForEdge func(*http.Request) (*url.URL, error)) *SmartProxy

func (*SmartProxy) ServeHTTP

func (smartProxy *SmartProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

type WebsocketProxyHandler

type WebsocketProxyHandler struct {
	Dialer   *websocket.Dialer
	ProxyURL *url.URL
	Upgrader websocket.Upgrader
	// contains filtered or unexported fields
}

func (*WebsocketProxyHandler) ServeHTTP

func (websocketProxyHandler *WebsocketProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL