ApacheEngineConfig

class ApacheEngineConfig : HttpClientEngineConfig

Configuration for Apache implementation of HttpClientEngineFactory.

Constructors

ApacheEngineConfig
Link copied to clipboard
fun ApacheEngineConfig()

Functions

customizeClient
Link copied to clipboard
fun customizeClient(block: HttpAsyncClientBuilder.() -> Unit)
Customizes a HttpAsyncClientBuilder in the specified block.
customizeRequest
Link copied to clipboard
fun customizeRequest(block: RequestConfig.Builder.() -> Unit)
Customizes a RequestConfig.Builder in the specified block.

Properties

connectionRequestTimeout
Link copied to clipboard
var connectionRequestTimeout: Int = 20_000
Max milliseconds for the connection manager to start a request - default 20 seconds.
connectTimeout
Link copied to clipboard
var connectTimeout: Int = 10_000
Max milliseconds to establish an HTTP connection - default 10 seconds.
customClient
Link copied to clipboard
var customClient: HttpAsyncClientBuilder.() -> HttpAsyncClientBuilder
Custom processor for HttpAsyncClientBuilder.
customRequest
Link copied to clipboard
var customRequest: RequestConfig.Builder.() -> RequestConfig.Builder
Custom processor for RequestConfig.Builder.
followRedirects
Link copied to clipboard
var followRedirects: Boolean = false
Whether or not, it will follow Location headers.
pipelining
Link copied to clipboard
var pipelining: Boolean
proxy
Link copied to clipboard
var proxy: ProxyConfig?
response
Link copied to clipboard
val response: Nothing
socketTimeout
Link copied to clipboard
var socketTimeout: Int = 10_000
Max milliseconds between TCP packets - default 10 seconds.
sslContext
Link copied to clipboard
var sslContext: SSLContext? = null
Optional Java's SSLContext allowing to set custom keys, trust manager or custom source for secure random data
threadsCount
Link copied to clipboard
var threadsCount: Int