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

hashCode → int
The hash code for this object.
no setterinherited
running → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unavailable ↔ String?
Why requests cannot be read right now, null while they can.
getter/setter pair

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.

Constants

pollEvery → const Duration