RequestLog class final

The request ring. Hand observer to RestTransport, or let registerForgeServiceExtensions wire it through the debug slot.

Constructors

RequestLog({int capacity = 200, Clock clock = realClock})
Creates a ring of capacity requests (at least one).

Properties

capacity → int
Requests held before the oldest is overwritten.
final
dropped → int
Requests overwritten by newer ones.
no setter
hashCode → int
The hash code for this object.
no setterinherited
observer → RequestObserver
observe as a value, for RestTransport(observer: ...).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Forgets everything, including the request ids still waiting to settle.
entries() → List<RequestSnapshot>
In dispatch order, oldest first.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe(RequestEvent event) → void
Records one transport event.
purge() → void
Drops every request and leaves one marker with no path, query, header, body or principal. A request that was in flight is not recorded when it settles. Called when the identity changes, so one user's requests are not readable by the next.
toString() → String
A string representation of this object.
inherited

Operators

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