RxNetLogInterceptor class

Inheritance

Constructors

RxNetLogInterceptor({bool request = true, bool requestHeader = true, bool requestBody = true, bool responseHeader = true, bool responseBody = true, bool error = true, void logPrint(Object object) = log2Console, HandlerError? handlerError, HandlerRequest? handlerRequest, HandlerResponse? handlerResponse})

Properties

error bool
是否打印错误信息
getter/setter pair
handlerError HandlerError?
getter/setter pair
handlerRequest HandlerRequest?
getter/setter pair
handlerResponse HandlerResponse?
外部实现了这几个方法 ,请勿调用 super.xxx方法
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logPrint ↔ void Function(Object object)
getter/setter pair
request bool
是否打印请求参数
getter/setter pair
requestBody bool
是否打印请求参数 post
getter/setter pair
requestHeader bool
是否打印请求头
getter/setter pair
responseBody bool
是否打印响应数据
getter/setter pair
responseHeader bool
是否打印响应头
getter/setter pair
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
Called when an exception was occurred during the request.
override
onRequest(RequestOptions options, RequestInterceptorHandler handler) → void
Called when the request is about to be sent.
override
onResponse(Response response, ResponseInterceptorHandler handler) Future
Called when the response is about to be resolved.
override
printAll(String msg) → void
printKV(String key, Object v) → void
toString() String
A string representation of this object.
inherited

Operators

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