HttpFailureMonitor class
Reads one app's dart:io HTTP profile on a timer and raises an AppAlert for each request that failed (4xx, 5xx or a transport error); runs only while something holds it.
Constructors
- HttpFailureMonitor({required VmService? service(), required bool live(), required void onAlert(AppAlert)})
Properties
Methods
-
acquire(
) → Future< String?> - Starts polling for one more holder and returns why it cannot read requests, null when it can.
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
describeUrl(
Uri uri) → String -
https://host/path?key=*&other=*: the query's values are replaced, its keys kept; user info and fragment dropped.