DefaultRequestExecutor class

This class is a default implementation of the RequestExecutor, and uses Client from the "http" library (link:https://pub.dev/packages/http) for request execution. DefaultRequestExecutor supports regular Rest method requests and as well as multipart requests, see MultipartRequestBody for multipart request example.

Inheritance

Constructors

DefaultRequestExecutor(Client client, {Duration timeOutDuration = const Duration(minutes: 5)})
Any Client implementation from the "http" library (link:https://pub.dev/packages/http). timeOutDuration configures the request's result wait duration, if request will rich the timeOutDuration the SocketException will be thrown.

Properties

client → Client
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeOutDuration Duration
final

Methods

execute(RowRequest rowRequest) Future<RowResponse>
Override this method and implement http call by using the parameters from the rowRequest.
override
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