Documentation
¶
Index ¶
- type Http3Server
- type HttpServer
- func (s *HttpServer) Close() error
- func (s *HttpServer) DialContext(ctx context.Context, network, addr string) (net.Conn, error)
- func (s *HttpServer) DialTlsContext(ctx context.Context, network, addr string) (net.Conn, error)
- func (s *HttpServer) NewServer(port int, scheme string) *http.Server
- func (s *HttpServer) Start() error
- type HttpsListener
- type HttpsServer
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 (*HttpServer) DialTlsContext ¶
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) 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 (*HttpsServer) Close ¶
func (https *HttpsServer) Close() error
func (*HttpsServer) Start ¶
func (https *HttpsServer) Start() error
Click to show internal directories.
Click to hide internal directories.