request method
Future
request(
- String serviceName,
- RequestMethod method,
- String path,
- ContentTypeEnum requestContentType,
- ContentTypeEnum responseContentType,
- bool? login,
- dynamic data,
Implementation
Future<dynamic> request(String serviceName,RequestMethod method, String path, ContentTypeEnum requestContentType, ContentTypeEnum responseContentType, bool? login, dynamic data) async {
if (requestHandler == null) throw Exception('RequestHandler not set');
if (responseHandler == null) throw Exception('ResponseHandler not set');
final request = await requestHandler!.handle(serviceName, method, path, requestContentType, responseContentType, login, data);
return responseHandler!.handle(request);
}