alphax_web 1.1.0
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.
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();
}
}