DSDioUtil class

Constructors

DSDioUtil()
factory

Properties

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

Methods

get(String url, {Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken}) Future
GET 方法请求 url 请求的地址 queryParameters 请求的参数信息 options 每个请求独立的options cancelToken 取消请求的Token
init({required String baseUrl, int connectTimeout = 1000 * 10, int receiveTimeout = 1000 * 10, DSHttpInject? inject, String? proxyAddress}) → void
Dio 初始化 baseUrl BASEURL,请求的基础url connectTimeout 连接超时时间(默认10s) receiveTimeout 接收超时时间(默认10s) inject 拦截处理 proxyAddress 代理处理
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String url, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken}) Future
POST 方法请求 url 请求的地址 data 请求Body中的数据 queryParameters 请求From表单中的数据 options 每个请求独立的options cancelToken 取消请求的Token
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getInstance() DSDioUtil