Response<T> class
Response describes the http Response info.
Constructors
-
Response({T data, Headers headers, RequestOptions request, bool isRedirect, int statusCode, String statusMessage, List<
RedirectRecord> redirects, Map<String, dynamic> extra})
Properties
- data ↔ T
-
Response body. may have been transformed, please refer to ResponseType.
read / write
-
extra
↔ Map<
String, dynamic> -
Custom field that you can retrieve it later in
then
.read / write - hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- headers ↔ Headers
-
Response headers.
read / write
- isRedirect → bool
-
Whether this response is a redirect.
** Attention **: Whether this field is available depends on whether the
implementation of the adapter supports it or not.
final
- realUri → Uri
-
Return the final real request uri (maybe redirect). [...]
read-only
-
redirects
↔ List<
RedirectRecord> -
Returns the series of redirects this connection has been through. The
list will be empty if no redirects were followed. redirects will be
updated both in the case of an automatic and a manual redirect. [...]
read / write
- request ↔ RequestOptions
-
The corresponding request info.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- statusCode ↔ int
-
Http status code.
read / write
- 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.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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