commonMain.com.algolia.search.configuration.internal.ConfigurationSearchImpl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of algoliasearch-client-kotlin-jvm Show documentation
Show all versions of algoliasearch-client-kotlin-jvm Show documentation
"Algolia is a powerful search-as-a-service solution, made easy to use with API clients, UI libraries, and pre-built integrations. Algolia API Client for Kotlin lets you easily use the Algolia Search REST API from your JVM project, such as Android or backend implementations."
package com.algolia.search.configuration.internal
import com.algolia.search.client.ClientSearch
import com.algolia.search.configuration.Compression
import com.algolia.search.configuration.ConfigurationSearch
import com.algolia.search.configuration.RetryableHost
import com.algolia.search.configuration.internal.extension.getHttpClient
import com.algolia.search.logging.LogLevel
import com.algolia.search.logging.Logger
import com.algolia.search.model.APIKey
import com.algolia.search.model.ApplicationID
import io.ktor.client.HttpClient
import io.ktor.client.HttpClientConfig
import io.ktor.client.engine.HttpClientEngine
/**
* Configuration used by [ClientSearch].
*/
internal class ConfigurationSearchImpl(
override val applicationID: ApplicationID,
override val apiKey: APIKey,
override val writeTimeout: Long,
override val readTimeout: Long,
override val logLevel: LogLevel,
override val hosts: List,
override val defaultHeaders: Map?,
override val engine: HttpClientEngine?,
override val httpClientConfig: (HttpClientConfig<*>.() -> Unit)?,
override val compression: Compression,
override val logger: Logger,
) : ConfigurationSearch {
override val httpClient: HttpClient = getHttpClient()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy