handler

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 12 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

This section is empty.

Types

type ProxyHandler

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

func NewProxyHandler

func NewProxyHandler(dialer dialer.ContextDialer, 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