DefaultRestRequestExecutor class

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

Inheritance

Constructors

DefaultRestRequestExecutor(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(RestRowRequest rowRequest) Future<RestRowResponse>
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