universal_io 2.2.2 copy "universal_io: ^2.2.2" to clipboard
universal_io: ^2.2.2 copied to clipboard

Cross-platform 'dart:io' that adds browser support for HttpClient and some other "dart:io" APIs.

example/example.dart

import 'package:universal_io/io.dart';

void main() async {
  // Use 'dart:io' HttpClient API.
  final httpClient = HttpClient();
  final request = await httpClient.getUrl(Uri.parse('https://dart.dev'));
  final response = await request.close();
  print(response.toString());
}
245
likes
160
points
1.62M
downloads

Publisher

verified publisherdint.dev

Weekly Downloads

Cross-platform 'dart:io' that adds browser support for HttpClient and some other "dart:io" APIs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

collection, meta, typed_data

More

Packages that depend on universal_io