HTTPManager class

Properties

dio → Dio
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addLife(dynamic life) → CancelToken
绑定 CancelToken
cancelLife(dynamic life) bool
取消请求
clearLife() → void
取消当前的全部请求
getAsync<T>(String path, {Map<String, dynamic>? queryParameters, Options? options, dynamic life, ProgressCallback? onReceiveProgress}) Future<Response<T>>
init(BaseOptions options, {List<Interceptor>? interceptors}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postAsync<T>(String path, {dynamic data, Options? options, dynamic life, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<T>>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance HTTPManager
no setter