Skip to content

Commit

Permalink
Fix(enhanced-http): method options
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 authored Oct 18, 2024
1 parent bd8dedb commit b391b0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/enhanced_http/lib/enhanced_http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
{Map<String, String>? headers,
InterceptorOptions? interceptors,
String? responseType,
Map<String, String>? options}) async {
Map<String, dynamic>? options}) async {
final url = Uri.parse('$baseURL$path');
return await request(() async {
if (isStream(headers, responseType)) {
Expand All @@ -49,7 +49,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
InterceptorOptions? interceptors,
List<dynamic>? files,
String? responseType,
Map<String, String>? options}) async {
Map<String, dynamic>? options}) async {
final url = Uri.parse('$baseURL$path');
return await request(() async {
if (isStream(headers, responseType)) {
Expand Down Expand Up @@ -110,7 +110,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
InterceptorOptions? interceptors,
List<dynamic>? files,
String? responseType,
Map<String, String>? options}) async {
Map<String, dynamic>? options}) async {
return _update("PUT", path, payload, headers, interceptors, files,
responseType, options);
}
Expand All @@ -121,7 +121,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
InterceptorOptions? interceptors,
List<dynamic>? files,
String? responseType,
Map<String, String>? options}) async {
Map<String, dynamic>? options}) async {
return _update("PATCH", path, payload, headers, interceptors, files,
responseType, options);
}
Expand All @@ -130,7 +130,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
{Map<String, String>? headers,
InterceptorOptions? interceptors,
String? responseType,
Map<String, String>? options}) async {
Map<String, dynamic>? options}) async {
final url = Uri.parse('$baseURL$path');
return await request(() async {
if (isStream(headers, responseType)) {
Expand All @@ -153,7 +153,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils {
{Map<String, String>? headers,
InterceptorOptions? interceptors,
String? responseType,
Map<String, String>? options}) async {
Map<String, dynamic>? options}) async {
final url = Uri.parse('$baseURL$path');
return await request(() async {
return await http.head(
Expand Down
2 changes: 1 addition & 1 deletion packages/enhanced_http/lib/interceptor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Interceptor {
Future<dynamic> request(
Function request,
Uri url,
Map<String, String>? options,
Map<String, dynamic>? options,
InterceptorOptions? _interceptors,
) async {
_interceptors = InterceptorOptions(
Expand Down

0 comments on commit b391b0e

Please sign in to comment.