|
@@ -5,6 +5,9 @@ import 'dart:collection';
|
|
|
import 'package:fis_common/extensions/type.dart';
|
|
|
|
|
|
import 'client_base.dart';
|
|
|
+
|
|
|
+import 'interceptor.dart';
|
|
|
+
|
|
|
import 'services/index.dart';
|
|
|
|
|
|
export 'services/index.dart';
|
|
@@ -58,6 +61,10 @@ class JsonRpcProxy {
|
|
|
}
|
|
|
_currentHost = address;
|
|
|
}
|
|
|
+
|
|
|
+ /// 添加拦截器
|
|
|
+ void addInterceptor(JsonRpcInterceptor interceptor) =>
|
|
|
+ jsonRpcInterceptHost.addInterceptor(interceptor);
|
|
|
|
|
|
/// 清空缓存
|
|
|
void clearCache() => _serviceCache.clear();
|