alphax_web 1.0.0 copy "alphax_web: ^1.0.0" to clipboard
alphax_web: ^1.0.0 copied to clipboard

Browser Fetch HTTP transport adapter for AlphaX with streaming, cancellation, and truthful capability reporting.

example/main.dart

import 'package:alphax_web/alphax_web.dart';

/// Sends one browser Fetch request.
Future<void> main() async {
  final client = createAlphaXClient();
  try {
    final response = await client.get(Uri.https('example.com', '/'));
    final metrics = await response.completionMetrics;
    print('${response.statusCode}: ${await response.readAsString()}');
    print('protocol metadata: ${metrics.negotiatedProtocol.name}');
  } finally {
    await client.close();
  }
}
0
likes
160
points
394
downloads

Documentation

API reference

Publisher

verified publisherauvanaventures.com

Weekly Downloads

Browser Fetch HTTP transport adapter for AlphaX with streaming, cancellation, and truthful capability reporting.

Repository (GitHub)
View/report issues
Contributing

Topics

#networking #http #web #flutter

License

Apache-2.0 (license)

Dependencies

alphax, http, web_socket

More

Packages that depend on alphax_web