UHttpClientResponse class
Result of UHttpClient.send: exactly one of response (body), error (body) or exception (message) is set.
Constructors
- UHttpClientResponse({String? response, String? error, String? exception})
- Result of a request.
Properties
- error → String?
-
Response body on non-2xx.
final
- exception → String?
-
Message when no response came (offline, timeout, crash).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
True when the server answered with an error status.
no setter
- isException → bool
-
True when no response came.
no setter
- isSuccessful → bool
-
True on 2xx.
no setter
- response → String?
-
Response body on 2xx.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited