ApacheEngineConfig

class ApacheEngineConfig : HttpClientEngineConfig

Configuration for Apache implementation of HttpClientEngineFactory.

Constructors

Link copied to clipboard
fun ApacheEngineConfig()

Functions

Link copied to clipboard
fun customizeClient(block: HttpAsyncClientBuilder.() -> Unit)

Customizes a HttpAsyncClientBuilder in the specified block.

Link copied to clipboard
fun customizeRequest(block: RequestConfig.Builder.() -> Unit)

Customizes a RequestConfig.Builder in the specified block.

Properties

Link copied to clipboard
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.

Link copied to clipboard
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.

Link copied to clipboard
var customClient: HttpAsyncClientBuilder.() -> HttpAsyncClientBuilder

Custom processor for HttpAsyncClientBuilder.

Link copied to clipboard
var customRequest: RequestConfig.Builder.() -> RequestConfig.Builder

Custom processor for RequestConfig.Builder.

Link copied to clipboard
var followRedirects: Boolean = false

Whether or not, it will follow Location headers. false by default. It uses the default number of redirects defined by Apache's HttpClient that is 50.

Link copied to clipboard
var pipelining: Boolean
Link copied to clipboard
var proxy: ProxyConfig?
Link copied to clipboard
val response: Nothing
Link copied to clipboard
var socketTimeout: Int

Max milliseconds between TCP packets - default 10 seconds. A value of 0 represents infinite, while -1 represents system's default value.

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

Link copied to clipboard
var threadsCount: Int