HttpOptions

@Serializable
data class HttpOptions(val baseUrl: String? = null, val apiVersion: String? = null, val headers: Map<String, String>? = null, val timeout: Int? = null)

HTTP options to be used in each of the requests.

Constructors

Link copied to clipboard
constructor(baseUrl: String? = null, apiVersion: String? = null, headers: Map<String, String>? = null, timeout: Int? = null)

Properties

Link copied to clipboard
val apiVersion: String? = null

Specifies the version of the API to use.

Link copied to clipboard
val baseUrl: String? = null

The base URL for the AI platform service endpoint.

Link copied to clipboard
val headers: Map<String, String>? = null

Additional HTTP headers to be sent with the request.

Link copied to clipboard
val timeout: Int? = null

Timeout for the request in milliseconds.