APIOptions<T> mixin
- Mixin applications
Properties
- config → APIConfig
-
全局配置
no setter
- contentType → String?
-
no setter
- extra → Parameters?
-
no setter
- followRedirects → bool?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → HTTPHeader?
-
请求头 默认 null
no setter
- listFormat → ListFormat?
-
no setter
- maxRedirects → int?
-
no setter
- method → HTTPMethod
-
请求方式 默认 post
no setter
- options → Options?
-
请求配置
no setter
- parameters → Parameters?
-
请求参数 默认 null
no setter
-
parseJson
→ ParseJsonT<
T> -
json 转换函数
no setter
- path → String
-
请求路径 默认 null
no setter
- persistentConnection → bool?
-
no setter
- prefixPath → String
-
跟随主域名后面的前缀
no setter
- preserveHeaderCase → bool?
-
no setter
- receiveDataWhenStatusError → bool?
-
no setter
- receiveTimeout → Duration?
-
接收超时时间
no setter
- requestEncoder → RequestEncoder?
-
no setter
- responseDecoder → ResponseDecoder?
-
no setter
- responseType → ResponseType?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeout → Duration?
-
发送超时时间
no setter
- suffixPath → String
-
跟随主域名后面的后缀
no setter
- url → String
-
请求 url, 由 prefixPath、path 和 suffixPath 组成
no setter
- validateStatus → ValidateStatus?
-
no setter
Methods
-
fromJson(
dynamic json) → T -
将
json转换为对应的T类型 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited