We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d805005 commit 1cc2fe7Copy full SHA for 1cc2fe7
2 files changed
lib/src/api_options/api_options.dart
@@ -10,7 +10,10 @@ class ApiOptions {
10
this.expireDuration,
11
this.cancelToken,
12
this.ignoreAutoRefresh = true,
13
+ this.responseType,
14
+
15
});
16
+ ResponseType? responseType;
17
18
Map<String, dynamic>? headers;
19
lib/src/api_service_impl.dart
@@ -56,6 +56,7 @@ class ApiServiceImpl implements ApiService {
56
cancelToken: options?.cancelToken,
57
data: body,
58
options: Options(
59
+ responseType: options?.responseType,
60
headers: _formatHeaders(options),
61
receiveTimeout: options?.receiveTimeout,
62
sendTimeout: options?.sendTimeout,
0 commit comments