HiNetResponse<T> class
统一网络层返回格式
Constructors
- HiNetResponse({T? data, required HiNetBaseRequest request, int? statusCode, String? statusMessage, dynamic extra})
Properties
- data ↔ T?
-
Response body. may have been transformed, please refer to
ResponseType
.getter/setter pair - extra ↔ dynamic
-
Custom field that you can retrieve it later in
then
.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- request ↔ HiNetBaseRequest
-
The corresponding request info.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode ↔ int?
-
Http status code.
getter/setter pair
- statusMessage ↔ String?
-
Returns the reason phrase associated with the status code.
The reason phrase must be set before the body is written
to. Setting the reason phrase after writing to the body.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
We are more concerned about
data
field.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited