RequestSnapshot class final
What one request did, reduced to what is free to keep.
Constructors
-
RequestSnapshot({required int id, required String operation, required String method, required String args, required int at, required int? duration, required int attempts, required int limit, required int? status, required RequestOutcome outcome, required List<
RequestRetry> retries, required int refreshes, required bool joined, required int authMs, bool marker = false}) -
Creates a snapshot.
const
Properties
- args → String
-
Path and query as a truncated key. Never headers, never the body.
final
- at → int
-
Clock reading at dispatch.
final
- attempts → int
-
Attempts actually made.
final
- authMs → int
-
Milliseconds waiting on the refresh.
final
- duration → int?
-
Null while in flight.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The transport's request id. Negative for a marker.
final
- joined → bool
-
Whether it only joined a refresh someone else started.
final
- limit → int
-
Attempts the method was allowed.
final
- marker → bool
-
Whether this is the principal-change marker rather than a request. A
marker carries no path, query, status or principal.
final
- method → String
-
Upper-case method.
final
- operation → String
-
METHOD /path. Empty-bodied for a marker.final - outcome → RequestOutcome
-
Where it is.
final
- refreshes → int
-
Times a 401 sent it to the refresh.
final
-
retries
→ List<
RequestRetry> -
Each retry, with its delay.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int?
-
The final status.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json - The JSON form.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited