jsMain.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 kotlinx.coroutines.await
@JsName("requirementClient")
@JsExport
actual fun requirementClient(urlBase: String): F2SupplierSingle = f2SupplierSingle {
F2ClientBuilder.get(urlBase)
.await()
.let(::RequirementClient)
}
actual fun F2Client.requirementClient(): F2SupplierSingle = f2SupplierSingle {
RequirementClient(this)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy