http_client 1.0.3 http_client: ^1.0.3 copied to clipboard
A platform-independent HTTP client API supporting browser, console, and curl (for SOCKS proxy).
import 'dart:async';
import 'package:http_client/console.dart';
Future main() async {
final client = new ConsoleClient();
final rs = await client.send(new Request('GET', 'https://www.example.com/'));
final textContent = await rs.readAsString();
print(textContent);
await client.close();
}