http_client 1.5.3 copy "http_client: ^1.5.3" to clipboard
http_client: ^1.5.3 copied to clipboard

A platform-independent HTTP client API supporting browser, console, and curl (for SOCKS proxy).

example/example.dart

import 'dart:async';

import 'package:http_client/console.dart';

Future main() async {
  final client = ConsoleClient();
  final rs = await client.send(Request('GET', 'https://www.example.com/'));
  final textContent = await rs.readAsString();
  print(textContent);
  await client.close();
}
15
likes
160
points
17k
downloads

Publisher

verified publisheragilord.com

Weekly Downloads

A platform-independent HTTP client API supporting browser, console, and curl (for SOCKS proxy).

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

buffer, executor, http

More

Packages that depend on http_client