Zeta Sdk
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)
}Content copied to clipboard