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

discontinued

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();
}