HttpTimeout

class HttpTimeout

Client HTTP timeout feature. There are no default values, so default timeouts will be taken from engine configuration or considered as infinite time if engine doesn’t provide them.

Types

Feature

Companion object for feature installation.

HttpTimeoutCapabilityConfiguration

class HttpTimeoutCapabilityConfiguration

HttpTimeout extension configuration that is used during installation.

Constructors

<init>

HttpTimeout(
    requestTimeoutMillis: Long?,
    connectTimeoutMillis: Long?,
    socketTimeoutMillis: Long?)

Client HTTP timeout feature. There are no default values, so default timeouts will be taken from engine configuration or considered as infinite time if engine doesn’t provide them.

Companion Object Properties

INFINITE_TIMEOUT_MS

const val INFINITE_TIMEOUT_MS: Long

Infinite timeout in milliseconds.

key

The AttributeKey for this feature.

Companion Object Functions

install

fun install(feature: HttpTimeout, scope: HttpClient): Unit

Installs the feature class for a HttpClient defined at scope.

prepare

fun prepare(
    block: HttpTimeoutCapabilityConfiguration.() -> Unit
): HttpTimeout

Builds a TFeature by calling the block with a TConfig config instance as receiver.