Karbone Config
data class KarboneConfig(val baseUrl: String, val token: String? = null, val apiVersion: Int? = null, val connectTimeout: Duration = 10.seconds, val requestTimeout: Duration = 60.seconds, val retry: RetryPolicy = RetryPolicy.None, val json: Json = DefaultJson, val userAgent: String = "karbone/")
Immutable per-client configuration.
Types
Link copied to clipboard
class Builder
Mutable builder backing Karbone.cloud and Karbone.onPremise; not constructed directly.
Properties
Link copied to clipboard
carbone-version header. null omits it, which is what on-premise expects. Cloud should use LATEST_API_VERSION.
Link copied to clipboard
Time allowed to establish the TCP/TLS connection. Defaults to 10 seconds.
Link copied to clipboard
baseUrl with any trailing slash removed.
Link copied to clipboard
Per-request timeout. Carbone's synchronous render timeout is 60 s.
Link copied to clipboard
Retry behaviour on transport failures. Defaults to no retry.