Apache

HttpClientEngineFactory using org.apache.httpcomponents.httpasyncclient with the the associated configuration ApacheEngineConfig.

Supports HTTP/2 and HTTP/1.x requests.

Functions

create

fun create(
    block: ApacheEngineConfig.() -> Unit
): HttpClientEngine

Creates a new HttpClientEngine optionally specifying a block configuring T.

Extension Functions

config

fun <T : HttpClientEngineConfig> HttpClientEngineFactory<T>.config(
    nested: T.() -> Unit
): HttpClientEngineFactory<T>

Creates a new HttpClientEngineFactory based on this one with further configurations from the nested block.