Skip to content

anuragsoni/fiber

Repository files navigation

Fiber

Fiber is an asynchronous HTTP toolkit for Kotlin that is built on top of coroutines and Vert.x.

Caution

The library is in a POC stage so far. This is good for browsing/experimenting but is not ready for real-world use.

Server Example

import com.sonianurag.fiber.Http
import com.sonianurag.fiber.toBody
import java.net.InetSocketAddress
import kotlinx.coroutines.runBlocking

fun main() {
    runBlocking {
        val server =
            createHttpServer(InetSocketAddress("localhost", 8080)) { respond("Hello World".toBody()) }
        server.closed().await()
    }
}

Releases

No releases published

Packages

No packages published

Languages