SessionBuilder

class SessionBuilder(client: ApiClient)

The builder class that corresponds with Session.

Constructors

Link copied to clipboard
fun SessionBuilder(client: ApiClient)

Extensions

Link copied to clipboard
fun SessionBuilder.account(block: Credentials.Builder.() -> Unit)

Initializes account configuration.

Link copied to clipboard
fun SessionBuilder.api(block: ApiConfig.Builder.() -> Unit)

Creates ApiConfig configurations. Provides timeout, retries, emulations and so on.

Link copied to clipboard
fun <T : HttpClientEngineConfig> SessionBuilder.httpClient(engineFactory: HttpClientEngineFactory<T>, block: HttpClientConfig<T>.() -> Unit = {})

Creates HttpClient with engine factory and config block.

fun SessionBuilder.httpClient(block: HttpClientConfig<*>.() -> Unit = {})

Creates HttpClient with default engine factory and engine config block

fun SessionBuilder.httpClient(client: HttpClient)

Creates HttpClient with existing client.