Documentation
¶
Index ¶
- type Http3Server
- type HttpProxy
- func (s *HttpProxy) ChangeHostAndHeader(r *http.Request, host string, header string, httpOnly bool)
- func (s *HttpProxy) ChangeRedirectURL(r *http.Request, url string) string
- func (s *HttpProxy) ChangeResponseHeader(resp *http.Response, header string)
- func (s *HttpProxy) Close() error
- func (s *HttpProxy) Start() error
- 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 (s *Http3Server) Close() error
func (*Http3Server) GetConfigForClient ¶
func (s *Http3Server) GetConfigForClient(info *tls.ClientHelloInfo) (*tls.Config, error)
func (*Http3Server) HandleQUIC ¶
func (s *Http3Server) HandleQUIC(qc *quic.Conn, alpn, sni string)
func (*Http3Server) Start ¶
func (s *Http3Server) Start() error
type HttpProxy ¶
type HttpProxy struct {
*proxy.BaseServer
HttpServer *HttpServer
HttpsServer *HttpsServer
Http3Server *Http3Server
HttpPort int
HttpsPort int
Http3Port int
HttpProxyCache *index.AnyIntIndex
HttpOnlyPass string
AddOrigin bool
HttpPortStr string
HttpsPortStr string
Http3PortStr string
Http3Bridge bool
ErrorAlways bool
ForceAutoSsl bool
Magic *certmagic.Config
Acme *certmagic.ACMEIssuer
}
func NewHttpProxy ¶
func (*HttpProxy) ChangeHostAndHeader ¶
ChangeHostAndHeader Change headers and host of request
func (*HttpProxy) ChangeRedirectURL ¶
ChangeRedirectURL Change redirect URL
func (*HttpProxy) ChangeResponseHeader ¶
ChangeResponseHeader Change headers of response
type HttpServer ¶
type HttpServer struct {
*HttpProxy
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer(httpProxy *HttpProxy, l net.Listener) *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 (l *HttpsListener) Addr() net.Addr
func (*HttpsListener) Close ¶
func (l *HttpsListener) Close() error
type HttpsServer ¶
type HttpsServer struct {
*HttpServer
// contains filtered or unexported fields
}
func NewHttpsServer ¶
func NewHttpsServer(httpServer *HttpServer, l net.Listener) *HttpsServer
func (*HttpsServer) Close ¶
func (s *HttpsServer) Close() error
func (*HttpsServer) Start ¶
func (s *HttpsServer) Start() error
Click to show internal directories.
Click to hide internal directories.