Optional Tokio + Hyper server adapter for Neton on Kotlin/Native.
This project is independent from the Neton framework repository. Applications choose the adapter at compile time by passing its constructor to the Neton HTTP component:
dependencies {
implementation("com.netonframework:neton-http-hyper4k:0.2.0")
}import neton.http.http
import neton.http.hyper4k.Hyper4kHttpAdapter
Neton.run(args) {
http(::Hyper4kHttpAdapter) {
port = 8080
}
}The default http { } overload remains Ktor. Adapter selection is not an application.conf
setting because Kotlin/Native links implementations at compile time.
The adapter always uses asynchronous handoff. Hyper snapshots each request on its Tokio worker,
then Neton runs the suspend handler in a bounded Kotlin/Native coroutine scope. The standard
http.maxConnections and http.timeout settings provide overload protection and request timeout;
there is no Hyper-specific thread-pool or handoff switch.
For local development, place neton, hyper4k, and this repository in the same parent directory,
then run:
../neton/gradlew -p . macosArm64Test