Documentation ¶
Index ¶
- func GetMITMCACert() ([]byte, []byte, error)
- type Config
- type MITMProxy
- type Option
- func WithAutoCa() Option
- func WithCaCert(ca []byte, key []byte) Option
- func WithDefaultTimeout(d float64) Option
- func WithDownstreamProxy(c ...string) Option
- func WithHijackRequest(c func(isHttps bool, req *http.Request, raw []byte) []byte) Option
- func WithHijackResponse(...) Option
- func WithHost(host string) Option
- func WithMirrorRequest(cb func(req *http.Request)) Option
- func WithMirrorResponse(...) Option
- func WithPort(port int) Option
- func WithTransparentMode(b bool) Option
- func WithWebHook(cb func(req *http.Request) []byte) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMITMCACert ¶
Types ¶
type Config ¶
type MITMProxy ¶
type MITMProxy struct {
// contains filtered or unexported fields
}
func NewMITMProxy ¶
func (*MITMProxy) AddConnectionCount ¶
func (m *MITMProxy) AddConnectionCount()
func (*MITMProxy) SubConnectionCount ¶
func (m *MITMProxy) SubConnectionCount()
type Option ¶
type Option func(config *Config)
func WithAutoCa ¶
func WithAutoCa() Option
func WithCaCert ¶
func WithDefaultTimeout ¶
func WithDownstreamProxy ¶
func WithHijackRequest ¶
func WithHijackResponse ¶
func WithMirrorRequest ¶
func WithMirrorResponse ¶
func WithTransparentMode ¶
Click to show internal directories.
Click to hide internal directories.