WorkRequestOptions class
任务请求的全部配置信息
Constructors
Properties
- cancelToken → CancelToken
-
用于取消本次请求的工具,由框架管理,和使用,用户不应对其进行任何操作
final
- configKey ↔ String?
-
用于指定使用的网络全局网络访问器的key
getter/setter pair
- dioOptions → Options
-
dio
中的请求选项,也是原始http请求的配置选项final - downloadPath ↔ String?
-
下载文件的本地存放路径
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- onReceiveProgress ↔ OnProgress?
-
接收/下载进度监听器
getter/setter pair
- onSendProgress ↔ OnProgress?
-
发送/上传进度监听器,在HttpMethod.get和HttpMethod.head以及设置了downloadPath的下载任务中无效
getter/setter pair
- params ↔ dynamic
-
用于发送的请求参数
getter/setter pair
-
queryParams
↔ Map<
String, dynamic> ? -
发送的请求查询参数
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url ↔ String
-
完整的请求地址(包含http(s)://),或者是相对地址(需调用过workConfig设置全局dio根地址)
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited