smart_http 1.0.0+1 smart_http: ^1.0.0+1 copied to clipboard
A dart wrapper around dio to handle http requests along with cancelable api for bloc and repository.
// ignore_for_file: avoid_print
import 'package:smart_http/smart_http.dart';
void main() async {
final http = HttpClient(
clientConfig: const HttpClientConfig(enableLogs: true),
);
final result = await http.get<String>(
baseUrl: 'https://pub.dev',
path: '/packages/smart_http',
);
print(result);
}