BugCapsuleDio class

Inheritance

Constructors

BugCapsuleDio({List<EndpointRule> rules = const [], Set<String> ignoreQuery = const {'_', 'ts', 'timestamp', 'nonce', 'cachebust'}, Set<String> ignoreBodyFields = const {}, int maxBinaryBytes = 64 * 1024, int maxKeyBodyBytes = 64 * 1024, Duration maxBodyWait = const Duration(seconds: 30), bool exclude(RequestOptions options)?})

Properties

exclude → bool Function(RequestOptions options)?
Requests for which only method, redacted URL, status and timing are recorded: no headers, no bodies (e.g. login or payment endpoints).
final
hashCode → int
The hash code for this object.
no setterinherited
keys → RequestKeyBuilder
final
maxBinaryBytes → int
final
maxBodyWait → Duration
A response body still streaming after this long is recorded as truncated so long-lived (non-SSE) streams appear in the capsule.
final
maxKeyBodyBytes → int
Request bodies up to this size take part in the request key. Fixed (not tied to remote config) so capture and replay always agree; larger bodies are keyed without a body hash.
final
name → String
Key of this integration's data in checkpoints, e.g. bloc.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach(Dio dio) → void
Installs capture (or replay) on dio. Safe to call before or after BugCapsule.init.
describeEligibility(EligibilityBuilder eligibility, RecordedWindow window) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restore(Object? data, BugCapsuleSession session) → Future<void>
inherited
setUp(BugCapsuleSession session) → Future<void>
override
snapshot(CheckpointKind kind) → FutureOr<Object?>
JSON-safe snapshot for a checkpoint, or null.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited