class HttpTimeoutOptions
source · line 9public 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
public fun HttpTimeoutOptions.copy(configure: HttpTimeoutOptionsBuilder.() -> Unit = {}): HttpTimeoutOptions· scoop:scoop.http.client:0.1.0
property tlsHandshake
source · line 33public 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 45public 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 37public val readIdle: Duration? = None
get: public read-only
Optional timeout for waiting without incoming progress; None disables this bound.
property connect
source · line 29public val connect: Duration? = Some(Duration.seconds(30L))
get: public read-only
Optional timeout for establishing TCP; None disables this bound.
property responseHeaders
source · line 21public val responseHeaders: Duration? = None
get: public read-only
Optional timeout for waiting for final response headers; None disables this bound.
property total
source · line 13public 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 25public 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 41public val writeIdle: Duration? = None
get: public read-only
Optional timeout for waiting without outgoing progress; None disables this bound.
property poolAcquire
source · line 17public val poolAcquire: Duration? = None
get: public read-only
Optional timeout for waiting for pool capacity; None disables this bound.