DeekWebAsyncRequest<T> class
abstract
Explicit async parsing. Direct synchronous use by a legacy fake fails loudly.
- Inheritance
-
- Object
- DeekWebRequest<
T> - DeekWebAsyncRequest
Constructors
- DeekWebAsyncRequest()
-
const
Properties
- body → dynamic
-
Gets the body for the request. Null by default.
no setterinherited
- encoding → Encoding?
-
Gets the encoding to use for the request. Null by default.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Gets the headers to include with the request. Empty by default.
no setterinherited
- method → Method
-
Gets the HTTP method for this request, e.g. GET, POST, DELETE, etc.
no setterinherited
- name → String
-
Gets a name for this request type. The DeekWebClient will use this
name for logging and notifying listeners. By default, it will simply
return the runtimeType name of your DeekWebRequest implementation.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
Gets the absolute URI to use when making the request.
no setterinherited
- uriForLogging → String
-
Origin only by default. Overrides are responsible for their own privacy.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseResponse(
DeekWebHttpResponse response) → T? -
Method that parses the response from the server. This method will be
invoked by DeekWebClient when a respones completes with the
raw response data from the server, which you can use to parse it
into .
override
-
parseResponseAsync(
DeekWebHttpResponse response) → Future< T?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited