BitswapConfig constructor

const BitswapConfig({
  1. int maxConcurrentRequests = 10,
  2. List<String> httpFallbackGateways = const <String>[],
  3. Duration p2pTimeout = const Duration(seconds: 30),
  4. Duration httpTimeout = const Duration(seconds: 10),
  5. bool enableHttpFallback = false,
  6. int maxHttpBlockSize = 2 * 1024 * 1024,
  7. bool allowPrivateGateways = false,
  8. @visibleForTesting bool verifyHttpBlocks = true,
})

Creates a new BitswapConfig.

Implementation

const BitswapConfig({
  this.maxConcurrentRequests = 10,
  this.httpFallbackGateways = const <String>[],
  this.p2pTimeout = const Duration(seconds: 30),
  this.httpTimeout = const Duration(seconds: 10),
  this.enableHttpFallback = false,
  this.maxHttpBlockSize = 2 * 1024 * 1024,
  this.allowPrivateGateways = false,
  @visibleForTesting this.verifyHttpBlocks = true,
});