InfospectDioInterceptor class

InfospectDioInterceptor is an implementation of the InterceptorsWrapper provided by the dio package. This interceptor allows you to monitor and log HTTP requests and responses made using Dio.

The class works with the Infospect system to provide detailed logging and insights into the network operations of the application.

Usage Example:

final _dio = Dio(BaseOptions());
_dio.interceptors.add(Infospect.instance.dioInterceptor);

Constructors

InfospectDioInterceptor(Infospect infospect)
Constructs a new instance of InfospectDioInterceptor.

Properties

hashCode int
The hash code for this object.
no setterinherited
infospect Infospect
The primary system used for logging and managing network activities.
final
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 error, ErrorInterceptorHandler handler) → void
Intercepts any errors that occur when making an HTTP request using Dio.
onRequest(RequestOptions options, RequestInterceptorHandler handler) → void
Intercepts outgoing HTTP requests made using Dio.
onResponse(Response response, ResponseInterceptorHandler handler) → void
Intercepts the response for an HTTP request made using Dio.
toString() String
A string representation of this object.
inherited

Operators

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