DeekWebRequest<T> class abstract

Base class for a strongly-typed request to a server. is the type you expect the server to return for your request.

Your code should extend DeekWebRequest and override the properties as appropriate.

uri, method are required overrides. All others are optional.

Constructors

DeekWebRequest()
Creates a default DeekWebRequest.
const

Properties

body → dynamic
Gets the body for the request. Null by default.
no setter
encoding Encoding?
Gets the encoding to use for the request. Null by default.
no setter
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 setter
method Method
Gets the HTTP method for this request, e.g. GET, POST, DELETE, etc.
no setter
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 setter
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 setter
uriForLogging String
Gets a URI to be used in logging requests. By default just returns the uri property. If your URI contains any personal or identifiable information, consider overriding uriForLogging to avoid logging personal information.
no setter

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 .
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited