idempotency library

Classes

IdempotencyConfig
Tuning knobs for idempotencyKeyInterceptor.

Constants

idempotencyKeyHeader → const String
Conventional header name. Lowercase per Headers normalization.

Functions

defaultIdempotencyKeyGenerator() String
Emits a 128-bit hex-encoded key from Random.secure(), which uses the platform CSPRNG (/dev/urandom, BCryptGenRandom, or Web Crypto). FIPS 140-3 aligned on validated platforms.
idempotencyKeyInterceptor([IdempotencyConfig config = const IdempotencyConfig()]) → Interceptor
Builds an Interceptor that injects an idempotency key into IDEMPOTENT unary calls.