alphax_native 1.1.0 copy "alphax_native: ^1.1.0" to clipboard
alphax_native: ^1.1.0 copied to clipboard

Native Flutter HTTP transports and an application-facing client factory for AlphaX using Android Cronet, Apple URLSession, and a Dart IO fallback.

example/main.dart

import 'package:alphax_native/alphax_native.dart';

/// Sends one request through the automatically selected native transport.
Future<void> main() async {
  final client = await createAlphaXClient();
  try {
    final response = await client.get(Uri.https('example.com', '/'));
    final metrics = await response.completionMetrics;
    print('${response.statusCode}: ${await response.readAsString()}');
    print('negotiated protocol: ${metrics.negotiatedProtocol.name}');
  } finally {
    await client.close();
  }
}
0
likes
150
points
410
downloads

Documentation

API reference

Publisher

verified publisherauvanaventures.com

Weekly Downloads

Native Flutter HTTP transports and an application-facing client factory for AlphaX using Android Cronet, Apple URLSession, and a Dart IO fallback.

Repository (GitHub)
View/report issues
Contributing

Topics

#networking #http #flutter #cronet #urlsession

License

Apache-2.0 (license)

Dependencies

alphax, flutter, web_socket

More

Packages that depend on alphax_native

Packages that implement alphax_native