Versions in this module Expand all Collapse all v0 v0.0.2 Oct 13, 2022 v0.0.1 Oct 13, 2022 Changes in this version + type Config struct + APIHost string + ListenAddr *net.TCPAddr + MITMConfig *mitm.Config + MITMExceptions []string + OnConnect func(session *Session, proto string, addr string) net.Conn + OnError func(session *Session, err error) + OnRequest func(session *Session) (*http.Request, *http.Response) + OnResponse func(session *Session) *http.Response + Password string + TLSConfig *tls.Config + Username string + type Context struct + func (c *Context) GetProp(key string) (interface{}, bool) + func (c *Context) ID() string + func (c *Context) IsMITM() bool + func (c *Context) SetDeadline(t time.Time) error + func (c *Context) SetProp(key string, val interface{}) + type Proxy struct + Transport http.RoundTripper + func NewProxy(config Config) *Proxy + func (p *Proxy) Addr() net.Addr + func (p *Proxy) Close() + func (p *Proxy) Closing() bool + func (p *Proxy) Serve(l net.Listener) + func (p *Proxy) Start() error + type Session struct + func (s *Session) Ctx() *Context + func (s *Session) GetProp(key string) (interface{}, bool) + func (s *Session) ID() string + func (s *Session) RemoteAddr() string + func (s *Session) Request() *http.Request + func (s *Session) Response() *http.Response + func (s *Session) SetProp(key string, val interface{})