init(idleTimeout:concurrentHTTP1ConnectionsPerHostSoftLimit:)
HTTPClient.swift:1160init(idleTimeout: TimeAmount, concurrentHTTP1ConnectionsPerHostSoftLimit: Int)
init(idleTimeout: TimeAmount, concurrentHTTP1ConnectionsPerHostSoftLimit: Int)
s15AsyncHTTPClient0B0C13ConfigurationV14ConnectionPoolV11idleTimeout42concurrentHTTP1ConnectionsPerHostSoftLimitAG7NIOCore10TimeAmountV_Sitcfc
What are these?9QVKE
import AsyncHTTPClient
This package provides simple HTTP Client library built on top of SwiftNIO.
struct ConnectionPool
Connection pool configuration.
class HTTPClient
HTTPClient class provides API for request execution.
struct Configuration
HTTPClient
configuration.
struct TimeAmount
Represents a time interval.
@frozen struct Int
A signed integer value type.
init()
init(idleTimeout: TimeAmount)
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 idleTimeout: TimeAmount
Specifies amount of time connections are kept idle in the pool. After this time has passed without a new request the connections are closed.
var retryConnectionEstablishment: Bool
If true, HTTPClient
will try to create new connections on connection failure with an exponential backoff. Requests will only fail after the connect
timeout exceeded. If false, all requests that have no assigned connection will fail immediately after a connection could not be established. Defaults to true
.