getResponse abstract method
Future<Response>
getResponse({
- required ApiRequestType requestType,
- required String url,
- required Map<
String, String> headersForApiRequest, - ApiBodyType bodyType = ApiBodyType.json,
- Object? body,
- required Duration timeout,
- Map<
String, String> ? query, - required bool persistCookies,
- void uploadPercentage()?,
- bool validateStatus()?,
- void downloadProgress()?,
- required Client httpClient,
- CancelToken? cancelToken,
Implementation
Future<http.Response> getResponse({
required ApiRequestType requestType,
required String url,
required Map<String, String> headersForApiRequest,
ApiBodyType bodyType = ApiBodyType.json,
Object? body,
required Duration timeout,
Map<String, String>? query,
required bool persistCookies,
void Function(int)? uploadPercentage,
bool Function(int)? validateStatus,
void Function(int, int, int)? downloadProgress,
required http.Client httpClient,
CancelToken? cancelToken,
});