HttpResponse class

实际的Http响应数据

Constructors

HttpResponse({bool success = false, dynamic data, Map<String, List<String>>? headers, int statusCode = 0, required Uri realUri})

Properties

data → dynamic
响应数据
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, List<String>>?
响应头信息
final
realUri Uri
最终请求的地址
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
响应状态码
final
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