tom_basics_network 1.0.1 copy "tom_basics_network: ^1.0.1" to clipboard
tom_basics_network: ^1.0.1 copied to clipboard

Network utilities for Tom applications - HTTP retry and server discovery.

example/tom_basics_network_example.dart

import 'package:tom_basics_network/tom_basics_network.dart';

void main() async {
  // Example of using withRetry for HTTP operations
  print('HTTP Retry Configuration:');
  print('Default delays: ${kDefaultRetryDelaysMs.map((ms) => '${ms / 1000}s').join(', ')}');

  // Custom configuration
  const config = RetryConfig(
    retryDelaysMs: [1000, 2000, 4000],
    onRetry: null,
  );

  print('Custom delays: ${config.retryDelaysMs.map((ms) => '${ms / 1000}s').join(', ')}');
}
0
likes
160
points
9
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Network utilities for Tom applications - HTTP retry and server discovery.

Homepage
Repository (GitHub)
View/report issues

Topics

#network #http #retry

License

BSD-3-Clause (license)

Dependencies

http

More

Packages that depend on tom_basics_network