universal_io2 2.2.1 copy "universal_io2: ^2.2.1" to clipboard
universal_io2: ^2.2.1 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_io2/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());
}
0
likes
140
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

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

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

collection, meta, typed_data

More

Packages that depend on universal_io2