LogRequestsInterceptor class

Middleware which prints the time of the request, the elapsed time for the inner handlers, the response's status code and the request URI.

Implemented types

Constructors

LogRequestsInterceptor()

Properties

hashCode int
The hash code for this object.
no setterinherited
method String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime DateTime
getter/setter pair
uri Uri
getter/setter pair
watch Stopwatch
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(Object error, StackTrace stackTrace) → void
This method is called when an error occurs when executing the request.
override
onRequest(DartnessRequest request) → void
This method is called before the request is executed.
override
onResponse(DartnessResponse response) → void
This method is called after the request is executed.
override
toString() String
A string representation of this object.
inherited

Operators

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