Response class
Constructors
Properties
- body → String
-
The body of the response as a string.
no setter
- bodyBytes → Uint8List?
-
The bytes comprising the body of this response.
final
- contentLength → int?
-
The size of the response body, in bytes.
final
- createdAt → DateTime
-
ApiRequest object creation timestamp.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
final
- id → ObjectId
-
Id of current Response.
The same as related Request id.
no setter
- isRedirect → bool?
-
final
-
linkData
→ Map<
String, dynamic> -
Here you can assing your data that will be passed to the next link
final
- ok → bool
-
Represent reponse success
no setter
- persistentConnection → bool?
-
Whether the server requested that a persistent connection be maintained.
final
- reasonPhrase → String?
-
The reason phrase associated with the status code.
final
- received → DateTime
-
Time when Response was created.
final
- redirect → bool
-
Represent redirect status.
no setter
- request → Request
-
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(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited