Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MITM ¶
type MITM struct { ListenHTTPS bool //开启 HTTPS 代理服务器 HTTPAddr string //HTTP listen addr HTTPSAddr string //HTTPS listen addr TLSConf *TLSConfig Print bool //打印请求详情 IsDirect bool //是否直连,不通过代理 Scheduler func(req *http.Request) (proxy string, err error) //代理调度 func Filter func(req *http.Request) error //请求鉴权、清洗、限流 // contains filtered or unexported fields }
MITM 中间人
func (*MITM) Dump ¶
func (m *MITM) Dump(clientResponse http.ResponseWriter, clientRequest *http.Request)
Dump rt
Click to show internal directories.
Click to hide internal directories.