handler

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const COPY_BUF = 128 * 1024
View Source
const HintsHeaderName = "X-Src-IP-Hints"

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerDialer

type HandlerDialer interface {
	DialContext(ctx context.Context, net, address string) (net.Conn, error)
}

type ProxyHandler

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

func NewProxyHandler

func NewProxyHandler(timeout time.Duration, auth auth.Auth, dialer HandlerDialer,
	userIPHints bool, logger *clog.CondLogger) *ProxyHandler

func (*ProxyHandler) HandleRequest

func (s *ProxyHandler) HandleRequest(wr http.ResponseWriter, req *http.Request)

func (*ProxyHandler) HandleTunnel

func (s *ProxyHandler) HandleTunnel(wr http.ResponseWriter, req *http.Request)

func (*ProxyHandler) ServeHTTP

func (s *ProxyHandler) ServeHTTP(wr http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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