DioLoggerInterceptor class
Interceptor that logs HTTP requests and responses with formatting for readability.
Designed specifically for the Dio
library, this interceptor enhances debugging and
monitoring by providing clear and structured logging of network interactions.
Constructors
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(
DioException err, ErrorInterceptorHandler handler) → void - Handles errors during HTTP requests.
-
onRequest(
RequestOptions options, RequestInterceptorHandler handler) → void - Handles HTTP requests before they are sent.
-
onResponse(
Response response, ResponseInterceptorHandler handler) → void - Handles HTTP responses before they are processed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited