Versions in this module Expand all Collapse all v1 v1.0.0 Aug 26, 2026 Changes in this version + const HeaderKey + const HeaderOutcome + const HeaderReplayed + const MaxReplayResponseBytes + var ErrResponseTooLarge = errors.New("idempotencyhttp: response exceeds replay limit") + type FingerprintFunc func(*http.Request) (idempotency.Fingerprint, error) + type KeyFunc func(*http.Request, string) (idempotency.Key, error) + type Middleware struct + func New(options Options) (*Middleware, error) + func (m *Middleware) Handler(next http.Handler) http.Handler + type Options struct + Fingerprint FingerprintFunc + Key KeyFunc + Lease time.Duration + MaxResponseBytes int + ReplayHeaders []string + Service *idempotency.Service + TransitionTimeout time.Duration