class ApacheEngineConfig : HttpClientEngineConfig
Configuration for Apache implementation of HttpClientEngineFactory.
ApacheEngineConfig()
Configuration for Apache implementation of HttpClientEngineFactory. |
var connectTimeout: Int
Max milliseconds to establish an HTTP connection - default 10 seconds. A value of 0 represents infinite, while -1 represents system's default value. |
|
var connectionRequestTimeout: Int
Max milliseconds for the connection manager to start a request - default 20 seconds. A value of 0 represents infinite, while -1 represents system's default value. |
|
var customClient: HttpAsyncClientBuilder.() -> HttpAsyncClientBuilder
Custom processor for HttpAsyncClientBuilder. |
|
var customRequest: Builder.() -> Builder
Custom processor for RequestConfig.Builder. |
|
var followRedirects: Boolean
Whether or not, it will follow |
|
var socketTimeout: Int
Max milliseconds between TCP packets - default 10 seconds. A value of 0 represents infinite, while -1 represents system's default value. |
|
var sslContext: SSLContext?
Optional Java's SSLContext allowing to set custom keys, trust manager or custom source for secure random data |
fun customizeClient(block: HttpAsyncClientBuilder.() -> Unit): Unit
Customizes a HttpAsyncClientBuilder in the specified block. |
|
fun customizeRequest(block: Builder.() -> Unit): Unit
Customizes a RequestConfig.Builder in the specified block. |