smart_http 1.0.0+1 copy "smart_http: ^1.0.0+1" to clipboard
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.

example/main.dart

// 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);
}
1
likes
160
pub points
0%
popularity

Publisher

unverified uploader

A dart wrapper around dio to handle http requests along with cancelable api for bloc and repository.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

bloc, dio, equatable, http_parser, mime_type, path, uuid

More

Packages that depend on smart_http