LoggingInterceptor class

An interceptor that logs HTTP requests and responses.

Inheritance

Constructors

LoggingInterceptor({bool logRequests = true, bool logResponses = true, bool logErrors = true})
Creates a logging interceptor.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(Object error) Future<void>
Called when an error occurs.
override
onRequest(BaseRequest request) Future<void>
Called before a request is sent.
override
onResponse(Response response) Future<void>
Called after a response is received.
override
toString() String
A string representation of this object.
inherited

Operators

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