DioHttp class
author:Vans Z date: 2019/1/13 0013 desc: 提供 http 通信功能,可以被其他类 mixin
- Implementers
Constructors
- DioHttp()
Properties
-
commonParams
↔ Map<
String, dynamic> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tokenMap
↔ Map<
String, CancelToken> -
getter/setter pair
Methods
-
cancel(
{String? tag, String? message}) → void -
download(
String url, String savePath) → DownloadBuilder -
form(
String url, {Map< String, dynamic> ? formData}) → FormBuilder -
get(
String url) → GetBuilder -
getDioClient(
) → Dio -
init(
BaseOptions options, {required Map< String, dynamic> commonParam, required String? proxy}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
String url) → PostBuilder -
setInterceptor(
{required InterceptorSendCallback onRequest, required InterceptorSuccessCallback onResponse, required InterceptorErrorCallback onError}) → void - add interceptor
-
setTransformer(
Transformer transformer) → void - add or remove Transformer
-
testNetwork(
) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultTag → const String