ObservedRequest class

One request, as an observer sees it.

Carries both ends: what is known at the start, and futures for what is only known once the request finishes. An observer takes whichever it needs — there is no second interface to implement for the later half.

Constructors

ObservedRequest({required Request request, required Future<Response> response, required Future<RequestSummary> summary})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
request Request
The incoming request. Available immediately.
final
response Future<Response>
The response, once the pipeline has produced it.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
summary Future<RequestSummary>
How the request turned out: status, duration, and the registered path of the route that matched.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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