jvmMain.aws.smithy.kotlin.runtime.http.engine.DefaultHttpEngineJVM.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-client-engine-default-jvm Show documentation
Show all versions of http-client-engine-default-jvm Show documentation
Default HTTP Client Engine for Smithy services generated by smithy-kotlin
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.http.engine
import aws.smithy.kotlin.runtime.http.engine.okhttp.OkHttpEngine
internal actual fun newDefaultHttpEngine(
block: (HttpClientEngineConfig.Builder.() -> Unit)?,
): CloseableHttpClientEngine =
if (block != null) {
OkHttpEngine(block)
} else {
OkHttpEngine()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy