build

fun build(): HttpClient
fun build(engine: HttpClientEngine? = null): HttpClient

Build a configured HttpClient using the current builder state.

Delegates to the internal zetaHttpClient { ... } factory to construct and wire the client.

Return

A ready-to-use HttpClient instance.


fun build(addExtras: HttpClientConfig<*>.() -> Unit? = null): HttpClient

Build a configured HttpClient using the current builder state.

Delegates to the internal zetaHttpClient { ... } factory to construct and wire the client.

Return

A ready-to-use HttpClient instance.

Parameters

addExtras

Lambda to add extra custom configuration.