Versions in this module Expand all Collapse all v0 v0.0.1 Nov 8, 2025 Changes in this version + type Config struct + APIHost string + ListenAddr *net.TCPAddr + MITMConfig *mitm.Config + MITMExceptions []string + OnConnect OnConnectFunc + OnError OnErrorFunc + OnRequest OnRequestFunc + OnResponse OnResponseFunc + Password string + TLSConfig *tls.Config + Username string + type Context struct + func (c *Context) GetProp(key string) (v interface{}, ok bool) + func (c *Context) ID() (id string) + func (c *Context) IsMITM() (ok bool) + func (c *Context) SetDeadline(t time.Time) (err error) + func (c *Context) SetProp(key string, val interface{}) + type OnConnectFunc func(session *Session, proto string, addr string) (conn net.Conn) + type OnErrorFunc func(session *Session, err error) + type OnRequestFunc func(session *Session) (req *http.Request, resp *http.Response) + type OnResponseFunc func(session *Session) (resp *http.Response) + type Proxy struct + func NewProxy(config Config, socksProxyAddress string) *Proxy + func (p *Proxy) Addr() (addr net.Addr) + func (p *Proxy) Close() + func (p *Proxy) Closing() (ok bool) + func (p *Proxy) Serve(l net.Listener) + func (p *Proxy) Start() (err error) + type Session struct + func (s *Session) Ctx() (ctx *Context) + func (s *Session) GetProp(key string) (v interface{}, ok bool) + func (s *Session) ID() (id string) + func (s *Session) RemoteAddr() (addr string) + func (s *Session) Request() (req *http.Request) + func (s *Session) Response() (resp *http.Response) + func (s *Session) SetProp(key string, val interface{})