ReplayDebugger class

Special NiddlerDebugger that replays a previously saved session (in HAR format). This can be used to create a very basic dummy service implementation.

Note: only URL and method are used to match

Note: URLs are either matched with ALL query parameters or none. If multiple requests are found in the har file that satisfy the same URL/method, a round-robin implementation will rotate between the matching requests.

Implemented types

Constructors

ReplayDebugger({required String harContent, bool isActive = true})
Create a new ReplayDebugger that will replay the given HAR file from harContent If isActive is true (default), the debugger will be active and will intercept requests

Properties

hashCode int
The hash code for this object.
no setterinherited
isActive bool
getter/setter pairoverride-getter
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
overrideRequest(NiddlerRequest request, List<List<int>>? nonSerializedBody) Future<DebugRequest?>
override
overrideResponse(NiddlerRequest request, NiddlerResponse response, List<List<int>> nonSerializedBody) Future<DebugResponse?>
override
provideResponse(NiddlerRequest request) Future<DebugResponse?>
override
toString() String
A string representation of this object.
inherited
waitForConnection() Future<bool>
override

Operators

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