LogRequestsInterceptor class Null safety

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.
read-only, inherited
method String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startTime DateTime
read / write
uri Uri
read / write
watch Stopwatch
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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(Request request) → void
This method is called before the request is executed.
override
onResponse(Response 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