Versions in this module Expand all Collapse all v0 v0.0.1 Mar 17, 2026 Changes in this version + const MaxCaptureSize + func DecompressGzip(data []byte) []byte + type CaptureReader struct + func NewCaptureReader(r io.Reader, maxSize int) *CaptureReader + func (cr *CaptureReader) Bytes() []byte + func (cr *CaptureReader) Read(p []byte) (int, error) + type Event struct + Duration time.Duration + Error string + ID string + Method string + Path string + RequestBody []byte + RequestHeaders http.Header + ResponseBody []byte + ResponseHeaders http.Header + StartTime time.Time + Status int32 + type Option func(*ReverseProxy) + func WithTLSSkipVerify() Option + type Proxy interface + Close func() error + Events func() <-chan Event + ListenAndServe func(ctx context.Context) error + Replay func(ctx context.Context, method, path string, headers http.Header, body []byte) (Event, error) + type ReverseProxy struct + func New(listenAddr, upstreamAddr string, opts ...Option) (*ReverseProxy, error) + func (rp *ReverseProxy) Close() error + func (rp *ReverseProxy) Events() <-chan Event + func (rp *ReverseProxy) ListenAndServe(ctx context.Context) error + func (rp *ReverseProxy) Replay(ctx context.Context, method, path string, headers http.Header, body []byte) (Event, error) + func (rp *ReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)