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:1020
    var idleTimeout: TimeAmount

    Other members in extension

    Type members

    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 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.