Versions in this module Expand all Collapse all v0 v0.8.0 Nov 14, 2026 v0.7.0 Nov 5, 2026 v0.6.0 Oct 3, 2026 v0.5.0 Sep 28, 2026 v0.4.0 Sep 16, 2026 v0.3.0 Aug 1, 2026 v0.2.0 Jul 30, 2026 Changes in this version + func Fingerprint(c *x509.Certificate) string + func SubjectHashOld(c *x509.Certificate) string + type ActivateOpts struct + CACertPath string + Extra map[string]any + ProxyAddr string + SPKIFingerprint string + type BreakpointResume struct + Body string + Headers map[string]string + Method string + URL string + type CA struct + func LoadOrCreateCA(dir string) (*CA, error) + func (c *CA) Cert() *x509.Certificate + func (c *CA) CertDER() []byte + func (c *CA) CertPEM() []byte + func (c *CA) LeafFor(host string) (*tls.Certificate, error) + func (c *CA) SPKIFingerprint() string + type Exchange struct + Blocked bool + DurationMS int64 + Host string + ID int64 + Method string + Mocked bool + ReqBody string + ReqHeaders http.Header + RespBody string + RespHeaders http.Header + Secure bool + Status int + Time time.Time + URL string + type InstallTarget struct + Available bool + Command string + Label string + Note string + Tool string + func InstallLocations(certPath string, subjectHash string) []InstallTarget + type Interceptor interface + Activate func(ctx context.Context, opts ActivateOpts) (Session, error) + Available func(ctx context.Context) (ok bool, reason string) + Category func() string + ID func() string + Label func() string + func Browsers() []Interceptor + func OtherInterceptors() []Interceptor + type PausedExchange struct + Body string + Headers map[string]string + ID int64 + Method string + URL string + type Proxy struct + func New(ca *CA) *Proxy + func (p *Proxy) Abort(id int64) + func (p *Proxy) AddRule(r Rule) Rule + func (p *Proxy) CA() *CA + func (p *Proxy) CACertPEM() []byte + func (p *Proxy) Clear() + func (p *Proxy) DeleteRule(id int64) + func (p *Proxy) Exchanges() []*Exchange + func (p *Proxy) ListPaused() []*PausedExchange + func (p *Proxy) Resume(id int64, edit BreakpointResume) + func (p *Proxy) Rules() []Rule + func (p *Proxy) SPKIFingerprint() string + func (p *Proxy) Start(addr string) error + func (p *Proxy) Status() (bool, string) + func (p *Proxy) Stop() + func (p *Proxy) SubscribeBreakpoints() (<-chan struct{}, func()) + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Get(id string) (Interceptor, bool) + func (r *Registry) List() []Interceptor + func (r *Registry) PutSession(s Session) + func (r *Registry) Register(i Interceptor) + func (r *Registry) Sessions() []Session + func (r *Registry) StopSession(id string) error + type Rule struct + Block bool + Breakpoint bool + ID int64 + Match string + MockBody string + MockStatus int + type Session interface + ID func() string + Info func() map[string]any + Interceptor func() string + Stop func() error v0.1.0 Jul 29, 2026