httpproxy

package
v0.30.6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Http3Server

type Http3Server struct {
	*HttpsServer
	// contains filtered or unexported fields
}

func NewHttp3Server

func NewHttp3Server(httpsSrv *HttpsServer, udpConn net.PacketConn) *Http3Server

func (*Http3Server) Close

func (h3 *Http3Server) Close() error

func (*Http3Server) Start

func (h3 *Http3Server) Start() error

type HttpServer

type HttpServer struct {
	proxy.BaseServer
	// contains filtered or unexported fields
}

func NewHttp

func NewHttp(bridge proxy.NetBridge, task *file.Tunnel, httpPort, httpsPort, http3Port int, httpOnlyPass string, addOrigin bool, httpProxyCache *index.AnyIntIndex) *HttpServer

func (*HttpServer) Close

func (s *HttpServer) Close() error

func (*HttpServer) DialContext

func (s *HttpServer) DialContext(ctx context.Context, network, addr string) (net.Conn, error)

func (*HttpServer) DialTlsContext

func (s *HttpServer) DialTlsContext(ctx context.Context, network, addr string) (net.Conn, error)

func (*HttpServer) NewServer

func (s *HttpServer) NewServer(port int, scheme string) *http.Server

func (*HttpServer) Start

func (s *HttpServer) Start() error

type HttpsListener

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

HttpsListener wraps a parent listener.

func NewHttpsListener

func NewHttpsListener(l net.Listener) *HttpsListener

func (*HttpsListener) Accept

func (httpsListener *HttpsListener) Accept() (net.Conn, error)

func (*HttpsListener) Addr

func (httpsListener *HttpsListener) Addr() net.Addr

func (*HttpsListener) Close

func (httpsListener *HttpsListener) Close() error

type HttpsServer

type HttpsServer struct {
	HttpServer
	// contains filtered or unexported fields
}

func NewHttpsServer

func NewHttpsServer(l net.Listener, bridge proxy.NetBridge, task *file.Tunnel, srv *http.Server, magic *certmagic.Config) *HttpsServer

func (*HttpsServer) Close

func (https *HttpsServer) Close() error

func (*HttpsServer) Start

func (https *HttpsServer) Start() error

Jump to

Keyboard shortcuts

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