jvmMain.cccev.s2.requirement.client.requirementClient.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cccev-requirement-f2-client Show documentation
Show all versions of cccev-requirement-f2-client Show documentation
Kotlin implementation of Core Criterion and Core Evidence Vocabulary
package cccev.s2.requirement.client
import f2.client.F2Client
import f2.client.ktor.F2ClientBuilder
import f2.client.ktor.get
import f2.dsl.fnc.F2SupplierSingle
import f2.dsl.fnc.f2SupplierSingle
import io.ktor.client.plugins.HttpTimeout
actual fun F2Client.requirementClient(): F2SupplierSingle = f2SupplierSingle {
RequirementClient(this)
}
actual fun requirementClient(
urlBase: String
): F2SupplierSingle = f2SupplierSingle {
RequirementClient(
F2ClientBuilder.get(urlBase) {
install(HttpTimeout) {
requestTimeoutMillis = 60000
}
}
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy