http_rest_request_executor library

Classes

DefaultRequestExecutor
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.
RequestExecutor
This abstract class is the main handler for http calls. Derive from this class and implement the execute method, which receives the RowRequest as an argument and returns RowResponse as a result. The actual http call should happen in the execute method's body. To create a HttpRestClient instance, first and foremost you will need to provide an implementation of RequestExecutor to HttpRestClient.builder as shown in the example below.