Skip to content

Commit b391b0e

Browse files
Fix(enhanced-http): method options
1 parent bd8dedb commit b391b0e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/enhanced_http/lib/enhanced_http.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
2424
{Map<String, String>? headers,
2525
InterceptorOptions? interceptors,
2626
String? responseType,
27-
Map<String, String>? options}) async {
27+
Map<String, dynamic>? options}) async {
2828
final url = Uri.parse('$baseURL$path');
2929
return await request(() async {
3030
if (isStream(headers, responseType)) {
@@ -49,7 +49,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
4949
InterceptorOptions? interceptors,
5050
List<dynamic>? files,
5151
String? responseType,
52-
Map<String, String>? options}) async {
52+
Map<String, dynamic>? options}) async {
5353
final url = Uri.parse('$baseURL$path');
5454
return await request(() async {
5555
if (isStream(headers, responseType)) {
@@ -110,7 +110,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
110110
InterceptorOptions? interceptors,
111111
List<dynamic>? files,
112112
String? responseType,
113-
Map<String, String>? options}) async {
113+
Map<String, dynamic>? options}) async {
114114
return _update("PUT", path, payload, headers, interceptors, files,
115115
responseType, options);
116116
}
@@ -121,7 +121,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
121121
InterceptorOptions? interceptors,
122122
List<dynamic>? files,
123123
String? responseType,
124-
Map<String, String>? options}) async {
124+
Map<String, dynamic>? options}) async {
125125
return _update("PATCH", path, payload, headers, interceptors, files,
126126
responseType, options);
127127
}
@@ -130,7 +130,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
130130
{Map<String, String>? headers,
131131
InterceptorOptions? interceptors,
132132
String? responseType,
133-
Map<String, String>? options}) async {
133+
Map<String, dynamic>? options}) async {
134134
final url = Uri.parse('$baseURL$path');
135135
return await request(() async {
136136
if (isStream(headers, responseType)) {
@@ -153,7 +153,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
153153
{Map<String, String>? headers,
154154
InterceptorOptions? interceptors,
155155
String? responseType,
156-
Map<String, String>? options}) async {
156+
Map<String, dynamic>? options}) async {
157157
final url = Uri.parse('$baseURL$path');
158158
return await request(() async {
159159
return await http.head(

packages/enhanced_http/lib/interceptor.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Interceptor {
1717
Future<dynamic> request(
1818
Function request,
1919
Uri url,
20-
Map<String, String>? options,
20+
Map<String, dynamic>? options,
2121
InterceptorOptions? _interceptors,
2222
) async {
2323
_interceptors = InterceptorOptions(

0 commit comments

Comments
 (0)