ApacheEngineConfig

class ApacheEngineConfig : HttpClientEngineConfig

A configuration for the Apache client engine.

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

Specifies a time period (in milliseconds) in which a client should start a request.

Link copied to clipboard
var connectTimeout: Int

Specifies a time period (in milliseconds) in which a client should establish a connection with a server.

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

Specifies a custom processor for HttpAsyncClientBuilder.

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

Specifies a custom processor for RequestConfig.Builder.

Link copied to clipboard
var followRedirects: Boolean = false

Specifies whether to follow redirects automatically. Disabled by default.

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

Specifies a maximum time (in milliseconds) of inactivity between two data packets when exchanging data with a server.

Link copied to clipboard
var sslContext: SSLContext? = null

Allows you to configure SSL settings for this engine.

Link copied to clipboard
var threadsCount: Int