Help us shape the future of Go! Take the 2026 Go Developer Survey

handler

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COPY_BUF    = 128 * 1024
	BAD_REQ_MSG = "Bad Request\n"
)

Variables

This section is empty.

Functions

func NewSocksServer

func NewSocksServer(dialer dialer.ContextDialer, logger *log.Logger, fakeSNI string) (*socks5.Server, error)

Types

type DummySocksResolver

type DummySocksResolver struct{}

func (DummySocksResolver) Resolve

func (_ DummySocksResolver) Resolve(ctx context.Context, name string) (context.Context, net.IP, error)

type ProxyHandler

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

func NewProxyHandler

func NewProxyHandler(dialer dialer.ContextDialer, logger *clog.CondLogger, fakeSNI string) *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