restio 0.10.6 copy "restio: ^0.10.6" to clipboard
restio: ^0.10.6 copied to clipboard

discontinued
outdated

A simple but powerful HTTP Client for Dart inspired by OkHttp.

example/main.dart

import 'package:restio/restio.dart';

Future<void> main() async {
  final client = Restio();

  final request = Request.get('https://api.ipify.org?format=json');
  final call = client.newCall(request);
  final response = await call.execute();
  final data = await response.body.json();
  await response.close();

  print(data['ip']);

  await client.close();
}
26
likes
0
pub points
3%
popularity

Publisher

verified publishertiagohm.dev

A simple but powerful HTTP Client for Dart inspired by OkHttp.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

brotli, crypto, equatable, globbing, http2, http_parser, ip, meta, mime_type, path, raw, string_scanner, utf

More

Packages that depend on restio