Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpHandler ¶
type HttpHandler struct {
// contains filtered or unexported fields
}
func NewHttpHandler ¶
func NewHttpHandler(timeout int) *HttpHandler
NewHttpHandler creates a new HttpHandler instance with the given timeout.
func (*HttpHandler) Serve ¶
func (h *HttpHandler) Serve(ctx context.Context, lConn *net.TCPConn, pkt *packet.HttpRequest, ip string)
Serve handles the HTTP request by establishing a connection to the requested server.
type HttpsHandler ¶
type HttpsHandler struct {
// contains filtered or unexported fields
}
func NewHttpsHandler ¶
func NewHttpsHandler( timeout int, windowSize int, allowedPatterns []*regexp.Regexp, exploit bool, ) *HttpsHandler
NewHttpsHandler creates a new HttpsHandler instance with the given timeout, window size, allowed patterns, and exploit flag.
func (*HttpsHandler) Serve ¶
func (h *HttpsHandler) Serve( ctx context.Context, lConn *net.TCPConn, initPkt *packet.HttpRequest, ip string, )
Serve handles the HTTPS request by establishing a connection to the requested server.
Click to show internal directories.
Click to hide internal directories.