ZetaSdk

object ZetaSdk

Zeta SDK entry point.

Provides a DSL to create a configured HttpClient in a single call.

Usage:

val client = ZetaSdk.httpClient {
timeouts(connectMs = 2_000, requestMs = 10_000)
retry(setOf(HttpStatusCode.ServiceUnavailable, HttpStatusCode.NotFound), maxRetries = 3, onlyIdempotent = true)
logLevel(LogLevel.INFO)
}

Functions

Link copied to clipboard
fun build(resource: String, config: BuildConfig): ZetaSdkClient
Link copied to clipboard
suspend fun forget(): Result<Unit>