maxConnectionsPerHost property

  1. @override
int maxConnectionsPerHost
override

Gets and sets the maximum number of live connections, to a single host.

Increasing this number may lower performance and take up unwanted system resources.

To disable, set to null.

Default is null.

Implementation

@override
int get maxConnectionsPerHost => _nativeHttpClient.maxConnectionsPerHost!;
  1. @override
void maxConnectionsPerHost=(int? _maxConnectionsPerHost)
override

Gets and sets the maximum number of live connections, to a single host.

Increasing this number may lower performance and take up unwanted system resources.

To disable, set to null.

Default is null.

Implementation

@override
set maxConnectionsPerHost(int? _maxConnectionsPerHost) {
  _nativeHttpClient.maxConnectionsPerHost = _maxConnectionsPerHost;
}