Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpProxyServer ¶ added in v0.0.4
func NewTransparentProxy ¶ added in v0.0.7
func NewTransparentProxy() *HttpProxyServer
func (*HttpProxyServer) Listen ¶ added in v0.0.4
func (srv *HttpProxyServer) Listen() (err error)
func (*HttpProxyServer) ListenAndServe ¶ added in v0.0.4
func (srv *HttpProxyServer) ListenAndServe() error
ListenAndServe uses listener configured in Start method, so that this type could be reused for both testing and real serving
func (*HttpProxyServer) Proxy ¶ added in v0.0.4
func (srv *HttpProxyServer) Proxy() pmux.Proxy
func (*HttpProxyServer) ServeHTTP ¶ added in v0.0.4
func (srv *HttpProxyServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
func (*HttpProxyServer) String ¶ added in v0.0.7
func (srv *HttpProxyServer) String() string
type HttpsProxyServer ¶ added in v0.0.7
type HttpsProxyServer struct { HttpProxyServer // contains filtered or unexported fields }
func NewTransparentHttpsProxy ¶ added in v0.0.7
func NewTransparentHttpsProxy() *HttpsProxyServer
func (*HttpsProxyServer) ListenAndServe ¶ added in v0.0.7
func (srv *HttpsProxyServer) ListenAndServe() error
ListenAndServe uses listener configured in Start method, so that this type could be reused for both testing and real serving
func (*HttpsProxyServer) Proxy ¶ added in v0.0.7
func (srv *HttpsProxyServer) Proxy() pmux.Proxy
func (*HttpsProxyServer) String ¶ added in v0.0.7
func (srv *HttpsProxyServer) String() string
type MitmProxyServer ¶
type MitmProxyServer struct { HttpsProxyServer // contains filtered or unexported fields }
func NewMitmProxyServer ¶
func NewMitmProxyServer(pool *pool.Pool, ca certWrapper) *MitmProxyServer
func (*MitmProxyServer) Configure ¶ added in v0.0.4
func (mps *MitmProxyServer) Configure(c app.Config) error
func (*MitmProxyServer) ServeHTTP ¶
func (mps *MitmProxyServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
func (*MitmProxyServer) Start ¶
func (mps *MitmProxyServer) Start(ctx app.Context)
Click to show internal directories.
Click to hide internal directories.