TypeSafeClientOptions

@ApiStatus.Experimental
class TypeSafeClientOptions : Record

Non-secret settings for a synchronous native TypeSafe client.

Timeouts configure only the fallback transport. A supplied transport owns its timeouts; neither configuration establishes a global request deadline.

Parameters

baseUri

non-null provider base URI; endpoint validation belongs to the HTTP client

connectTimeout

fallback connection timeout, from one millisecond to Integer.MAX_VALUE milliseconds

readTimeout

fallback socket read timeout, with the same limits as connectTimeout

maxResponseBytes

positive byte limit for TypeSafe response decoding; application-owned buffering/interceptors may read before this limit applies

Constructors

Link copied to clipboard
constructor(baseUri: URI, connectTimeout: Duration, readTimeout: Duration, maxResponseBytes: Int)
Validates settings without resolving credentials or opening a connection.

Functions

Link copied to clipboard
Returns defaults targeting https://api.typesafe.ai with ten-second fallback connect/read timeouts and a one-MiB response decoding limit.
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun toString(): String
Keeps credentials, query parameters and gateway paths out of diagnostics.