BloomNetworkInspector class

Central network inspection and request replay engine for Bloom DevTools.

Records network traces in a bounded ring buffer (up to 200 traces) and supports replaying requests with custom overrides.

Example:

final traces = BloomNetworkInspector.traces;
final result = await BloomNetworkInspector.replayRequest(traces.first.id);

Constructors

BloomNetworkInspector()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

traces List<BloomNetworkTrace>
Chronological list of recorded network traces.
no setter

Static Methods

clear() → void
Clears all recorded traces.
recordTrace(BloomNetworkTrace trace) → void
Records a new network trace into the inspector buffer.
replayRequest(String traceId, {Map<String, String>? modifiedHeaders, dynamic modifiedBody, String? modifiedUrl, BloomHttpClient? client}) Future
Replays a captured request with optional parameter overrides, re-executing it and recording a new trace.