HttpClient class
Constructors
-
HttpClient({required String apiUrl, required bool enableLogs, required bool preventLargeResponses, Duration? connectTimeout = const Duration(seconds: 5), int maxAttempts = 3, bool kIsWeb = false})
-
Methods
-
checkInternetConnection(List<Uri> urls)
→ Future<bool>
-
-
fetch({required String path, Map<String, dynamic>? params, int? maxAttempts, Cache? enableCache})
→ Future<HttpResponse>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
request({required String path, required HttpMethod method, Object? data, Map<String, dynamic>? params, int? maxAttempts, Duration? timeout})
→ Future<HttpResponse>
-
-
-
-
toString()
→ String
-
A string representation of this object.
inherited