jvmMain.com.algolia.client.configuration.internal.Platform.jvm.kt Maven / Gradle / Ivy
package com.algolia.client.configuration.internal
import com.algolia.client.configuration.AgentSegment
import com.algolia.client.configuration.ClientOptions
import com.algolia.client.configuration.CompressionType
import io.ktor.client.*
internal actual fun platformAgentSegment(): AgentSegment {
return AgentSegment("JVM", System.getProperty("java.version"))
}
internal actual fun HttpClientConfig<*>.platformConfig(options: ClientOptions) {
if (options.compressionType == CompressionType.GZIP) {
install(GzipCompression)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy