All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jsMain.cccev.s2.requirement.client.requirementClient.kt Maven / Gradle / Ivy

There is a newer version: 0.15.0
Show newest version
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