HttpBaseClientResponse class
A Wrapper around the http.Response class. Will return status -1 if any client side error occurs, such as NO Internet connection or Socket Exceptions
Constructors
Properties
- body → String
-
The body of the response as a string.
final
- data → dynamic
-
Returns the parsed JSON or null
no setter
- dataAsFuture → Future
-
Returns asynchronously the parsed JSON or null
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
The HTTP headers returned by the server.
final
- reasonPhrase → String
-
The reason phrase associated with the status code.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
The HTTP status code for this response.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited