BitswapConfig constructor
- int maxConcurrentRequests = 10,
- List<
String> httpFallbackGateways = const <String>[], - Duration p2pTimeout = const Duration(seconds: 30),
- Duration httpTimeout = const Duration(seconds: 10),
- bool enableHttpFallback = false,
- int maxHttpBlockSize = 2 * 1024 * 1024,
- bool allowPrivateGateways = false,
- @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,
});