ConnectionManager class abstract

Manages the connections that should be reusable. It implements a connection reuse strategy for HTTP/2.

Constructors

ConnectionManager({Duration idleTimeout = const Duration(seconds: 15), void onClientCreate(Uri uri, ClientSetting)?, ProxyConnectedPredicate proxyConnectedPredicate = defaultProxyConnectedPredicate})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close({bool force = false}) → void
getConnection(RequestOptions options) Future<ClientTransportConnection>
Get the connection(may reuse) for each request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeConnection(ClientTransportConnection transport) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited