restio 0.4.2 restio: ^0.4.2 copied to clipboard
A simple but powerful HTTP Client for Dart inspired by OkHttp.
import 'package:restio/restio.dart';
final _client = Restio();
Future<void> main() async {
final request = Request.get('https://api.ipify.org?format=json');
final call = _client.newCall(request);
final response = await call.execute();
final dynamic data = await response.body.data.json();
print(data['ip']);
}