Instance Propertyasync-http-client 1.23.0AsyncHTTPClient
idleTimeout
Specifies amount of time connections are kept idle in the pool. After this time has passed without a new request the connections are closed.
HTTPClient.swift:1020var idleTimeout: TimeAmount
Other members in extension
Type members
init(
) init(idleTimeout: TimeAmount
) init(idleTimeout: TimeAmount, concurrentHTTP1ConnectionsPerHostSoftLimit: Int
)
Instance members
var concurrentHTTP1ConnectionsPerHostSoftLimit: Int
The maximum number of connections that are kept alive in the connection pool per host. If requests with an explicit eventLoopRequirement are sent, this number might be exceeded due to overflow connections.
var retryConnectionEstablishment: Bool
If true,
HTTPClient
will try to create new connections on connection failure with an exponential backoff. Requests will only fail after theconnect
timeout exceeded. If false, all requests that have no assigned connection will fail immediately after a connection could not be established. Defaults totrue
.