RxnetSimpleLogInterceptor class
author: ZhengZaiHong email:1096877329@qq.com date: 2026-04-23 9:06 describe: 简易输出所有请求和响应信息
- Inheritance
-
- Object
- AdapterInterceptor
- RxnetSimpleLogInterceptor
Constructors
- RxnetSimpleLogInterceptor({bool logHeaders = true, bool logBody = true})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- logBody → bool
-
final
- logHeaders → bool
-
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(
AdapterException error, ErrorInterceptorHandler handler) → void -
错误拦截
override
-
onRequest(
AdapterRequest request, RequestInterceptorHandler handler) → void -
请求拦截
override
-
onResponse(
AdapterResponse response, ResponseInterceptorHandler handler) → void -
响应拦截
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited