Scoop API

scoop:scoop.http.client:0.1.0

HttpConnectionPoolOptions

class HttpConnectionPoolOptions

source · line 8
public
public class HttpConnectionPoolOptions internal constructor(
    /**
     * Maximum connections pooled or being established for one origin.
     */
    public val maxConnectionsPerOrigin: Long = 8L,
    /**
     * Maximum connections across the client.
     */
    public val maxConnections: Long = 64L,
    /**
     * Local concurrent-stream cap per HTTP/2 connection, also constrained by peer settings.
     */
    public val maxStreamsPerHttp2: Long = 100L,
    /**
     * How long an unused connection remains reusable.
     */
    public val idleTimeout: Duration = Duration.seconds(60L),
    /**
     * Optional maximum connection age before retirement; existing active work follows normal
     * draining rules.
     */
    public val maxLifetime: Duration? = None
)

Positive connection/HTTP2 stream capacities plus idle and optional maximum connection lifetimes.

Extensions

property maxStreamsPerHttp2

source · line 20
public
public val maxStreamsPerHttp2: Long = 100L

get: public read-only

Local concurrent-stream cap per HTTP/2 connection, also constrained by peer settings.

property idleTimeout

source · line 24
public
public val idleTimeout: Duration = Duration.seconds(60L)

get: public read-only

How long an unused connection remains reusable.

property maxConnections

source · line 16
public
public val maxConnections: Long = 64L

get: public read-only

Maximum connections across the client.

property maxLifetime

source · line 29
public
public val maxLifetime: Duration? = None

get: public read-only

Optional maximum connection age before retirement; existing active work follows normal draining rules.

property maxConnectionsPerOrigin

source · line 12
public
public val maxConnectionsPerOrigin: Long = 8L

get: public read-only

Maximum connections pooled or being established for one origin.