Scoop API

scoop:scoop.http.client:0.1.0

HttpTimeoutOptions

class HttpTimeoutOptions

source · line 9
public
public class HttpTimeoutOptions internal constructor(
    /**
     * Optional timeout for the entire call through body and cleanup; None disables this bound.
     */
    public val total: Duration? = None,
    /**
     * Optional timeout for waiting for pool capacity; None disables this bound.
     */
    public val poolAcquire: Duration? = None,
    /**
     * Optional timeout for waiting for final response headers; None disables this bound.
     */
    public val responseHeaders: Duration? = None,
    /**
     * Optional timeout for resolving an address; None disables this bound.
     */
    public val resolve: Duration? = Some(Duration.seconds(30L)),
    /**
     * Optional timeout for establishing TCP; None disables this bound.
     */
    public val connect: Duration? = Some(Duration.seconds(30L)),
    /**
     * Optional timeout for performing a TLS handshake; None disables this bound.
     */
    public val tlsHandshake: Duration? = Some(Duration.seconds(30L)),
    /**
     * Optional timeout for waiting without incoming progress; None disables this bound.
     */
    public val readIdle: Duration? = None,
    /**
     * Optional timeout for waiting without outgoing progress; None disables this bound.
     */
    public val writeIdle: Duration? = None,
    /**
     * Optional timeout for performing CONNECT or SOCKS5 negotiation; None disables this bound.
     */
    public val proxyHandshake: Duration? = Some(Duration.seconds(30L))
)

Optional nonnegative deadlines for the total call and individual waits. None disables that bound; total includes upload, response body, and cleanup.

Extensions

property tlsHandshake

source · line 33
public
public val tlsHandshake: Duration? = Some(Duration.seconds(30L))

get: public read-only

Optional timeout for performing a TLS handshake; None disables this bound.

property proxyHandshake

source · line 45
public
public val proxyHandshake: Duration? = Some(Duration.seconds(30L))

get: public read-only

Optional timeout for performing CONNECT or SOCKS5 negotiation; None disables this bound.

property readIdle

source · line 37
public
public val readIdle: Duration? = None

get: public read-only

Optional timeout for waiting without incoming progress; None disables this bound.

property connect

source · line 29
public
public val connect: Duration? = Some(Duration.seconds(30L))

get: public read-only

Optional timeout for establishing TCP; None disables this bound.

property responseHeaders

source · line 21
public
public val responseHeaders: Duration? = None

get: public read-only

Optional timeout for waiting for final response headers; None disables this bound.

property total

source · line 13
public
public val total: Duration? = None

get: public read-only

Optional timeout for the entire call through body and cleanup; None disables this bound.

property resolve

source · line 25
public
public val resolve: Duration? = Some(Duration.seconds(30L))

get: public read-only

Optional timeout for resolving an address; None disables this bound.

property writeIdle

source · line 41
public
public val writeIdle: Duration? = None

get: public read-only

Optional timeout for waiting without outgoing progress; None disables this bound.

property poolAcquire

source · line 17
public
public val poolAcquire: Duration? = None

get: public read-only

Optional timeout for waiting for pool capacity; None disables this bound.