http_client 1.5.1
http_client: ^1.5.1 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();
}
11
likes
130
pub points
89%
popularity

Publisher

agilord.com

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