Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class ErrorStatus(val code: Int, val message: String, val details: String? = null)
Link copied to clipboard
Link copied to clipboard
data class Image(val category: String, val path: String, val author: String)
Link copied to clipboard
class ImgRes
Link copied to clipboard
data class MediaApiClient(val timeout: Timeout = Timeout.DEFAULT, val retry: Retry = Retry.DEFAULT) : AutoCloseable
Link copied to clipboard
Link copied to clipboard
data class Retry(val attempts: Int, val maxDelay: Duration)
Link copied to clipboard
data class Timeout(val connection: Duration, val read: Duration, val write: Duration)
Link copied to clipboard
data class Video(val description: String, val sources: List<String>, val subtitle: String, val thumb: String, val title: String, val poster: String? = null)
Link copied to clipboard
class VideoRes

Properties

Link copied to clipboard
Link copied to clipboard
val customSSLFactory: SSLFactory
Link copied to clipboard
val json: Json

Common JSON instance for serde of JSON data.

Link copied to clipboard
val log: KLogger

Functions

Link copied to clipboard
fun defaultHttpClientConfig(name: String, timeout: Timeout, retry: Retry, kLogger: KLogger): HttpClientConfigurer
Link copied to clipboard
Link copied to clipboard
expect fun httpClient(name: String = "Api Client", timeout: Timeout = Timeout.DEFAULT, retry: Retry = Retry.DEFAULT, kLogger: KLogger = log, config: HttpClientConfigurer = defaultHttpClientConfig(name, timeout, retry, kLogger)): HttpClient

Multiplatform HTTP client engine configuration

actual fun httpClient(name: String, timeout: Timeout, retry: Retry, kLogger: KLogger, config: HttpClientConfigurer): HttpClient
actual fun httpClient(name: String, timeout: Timeout, retry: Retry, kLogger: KLogger, config: HttpClientConfigurer): HttpClient
actual fun httpClient(name: String, timeout: Timeout, retry: Retry, kLogger: KLogger, config: HttpClientConfigurer): HttpClient