EurekaRestClient class

Eureka的REST接口客户端

用于调用微服务(带负载均衡)的工具

@author luodongseu

Constructors

EurekaRestClient(String serviceId, {String rootPath = '/'})

Properties

hashCode int
The hash code for this object.
read-onlyinherited
logger Log
read / write
rootPath String
根路径
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
serviceId String
服务的ID
final

Methods

checkOptions(dynamic method, dynamic options) Options
delete<T>(String path, {dynamic data, Map<String, dynamic> queryParameters, Options options, CancelToken cancelToken}) Future<Response<T>>
Handy method to make http DELETE request, which is a alias of BaseDio.request.
get<T>(String path, {Map<String, dynamic> queryParameters, Options options, CancelToken cancelToken, ProgressCallback onReceiveProgress}) Future<Response<T>>
Handy method to make http GET request, which is a alias of BaseDio.request.
Handy method to make http HEAD request, which is a alias of BaseDio.request.
loadAppAndLoadBalancerIfNeed({bool force = false}) bool
加载APP信息和负载均衡客户端
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
patch<T>(String path, {dynamic data, Map<String, dynamic> queryParameters, Options options, CancelToken cancelToken, ProgressCallback onSendProgress, ProgressCallback onReceiveProgress}) Future<Response<T>>
Handy method to make http PATCH request, which is a alias of BaseDio.request.
post<T>(String path, {dynamic data, Map<String, dynamic> queryParameters, Options options, CancelToken cancelToken, ProgressCallback onSendProgress, ProgressCallback onReceiveProgress}) Future<Response<T>>
Handy method to make http POST request, which is a alias of BaseDio.request.
put<T>(String path, {dynamic data, Map<String, dynamic> queryParameters, Options options, CancelToken cancelToken, ProgressCallback onSendProgress, ProgressCallback onReceiveProgress}) Future<Response<T>>
Handy method to make http PUT request, which is a alias of BaseDio.request.
toString() String
A string representation of this object.
inherited

Operators

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