AccessRecord class final

One served request, as the application should record it.

Constructors

AccessRecord({required String method, required String path, required int status, required Duration duration, String? requestId, String? matchedRoute})
Describes a finished request.
const

Properties

duration Duration
How long the handler took.
final
hashCode int
The hash code for this object.
no setterinherited
matchedRoute String?
The route pattern that served it — /orders/{id} — or null for a 404.
final
method String
The request method.
final
path String
The path as requested.
final
requestId String?
The id from a RequestId layer, when one ran.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
The status that went back.
final

Methods

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

Operators

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