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

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