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

Browser Fetch HTTP, WebSocket, and application-facing client integration for AlphaX with streaming, cancellation, and browser-owned security boundaries.

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, WebSocket, and application-facing client integration for AlphaX with streaming, cancellation, and browser-owned security boundaries.

Repository (GitHub)
View/report issues
Contributing

Topics

#http #web #flutter #streaming #websocket

License

Apache-2.0 (license)

Dependencies

alphax, http, web_socket

More

Packages that depend on alphax_web