request method
Execute request
Implementation
@override
Future<R> request() async {
try {
Dio client = getDioClient();
client.options.headers = ClouxHeaders.headersFromInstance(this);
Response response = await client.get(
path,
data: paramsSanitize(params),
queryParameters: queryParams(),
);
printResponse(response);
return this.response(response.data);
} catch (e) {
ExceptionManager(e).handle(this);
rethrow;
}
}