DeekWebClient class

A strongly typed REST client.

Constructors

DeekWebClient({DeekWebLogger? logger, bool includeCvHeader = false, String cvHeader = _defaultCvHeader})
Creates a new instance of the DeekWebClient that can be used to execute DeekWebRequests.

Properties

cvHeader String
Gets or sets the CV (Correleation Vector) header to be sent with every request. This header will only be sent if the includeCvHeader property is also set to true.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
includeCvHeader bool
Gets or sets whether or not a CV (Correleation Vector) header should be sent with requests. If true, the default header will be supplied. You can override the header name by setting the cvHeader property.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(DeekWebListener listener) → void
Adds a new listener to be notified of request status.
executeRequest<RequestType extends DeekWebRequest, ResponseType>(DeekWebRequest<ResponseType> request) Future<DeekWebResponse<RequestType, ResponseType>>
Executes a DeekWebRequest asynchronously.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(DeekWebListener listener) bool
Removes a listener from further request status updates. Returns true if listener was found and removed, false if not found.
toString() String
A string representation of this object.
inherited

Operators

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