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

discontinued
outdated

An HTTP Client for Dart inspired by OkHttp.

example/main.dart

import 'package:restio/restio.dart';

final client = Restio();

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.json();

  print(data['ip']);
}