HttpResponse class
实际的Http响应数据
Constructors
- HttpResponse({required Response dioResponse, bool success = false, dynamic data})
Properties
- data → dynamic
-
响应数据
final
- dioResponse → Response
-
原始dio响应数据
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, List< String> > -
响应头信息
no setter
- realUri → Uri
-
最终请求的地址
no setter
-
requestHeaders
→ Map<
String, dynamic> -
请求头信息
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
响应状态码
no setter
- success → bool
-
请求成功失败标志
final
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