restio 0.10.3 restio: ^0.10.3 copied to clipboard
A simple but powerful HTTP Client for Dart inspired by OkHttp.
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();
}