https://github.com/anuragsoni/fiber
Asynchronous HTTP toolkit for Kotlin + JVM
https://github.com/anuragsoni/fiber
http11 kotlin kotlin-coroutines netty
Last synced: 2 months ago
JSON representation
Asynchronous HTTP toolkit for Kotlin + JVM
- Host: GitHub
- URL: https://github.com/anuragsoni/fiber
- Owner: anuragsoni
- License: apache-2.0
- Created: 2024-07-18T00:57:54.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-07T02:33:11.000Z (11 months ago)
- Last Synced: 2025-04-12T07:43:36.457Z (2 months ago)
- Topics: http11, kotlin, kotlin-coroutines, netty
- Language: Kotlin
- Homepage:
- Size: 94.7 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fiber
Fiber is an asynchronous HTTP toolkit for Kotlin that is built on top of coroutines and [Vert.x](https://vertx.io).
> [!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
```kotlin
import com.sonianurag.fiber.Http
import com.sonianurag.fiber.toBody
import java.net.InetSocketAddress
import kotlinx.coroutines.runBlockingfun main() {
runBlocking {
val server =
createHttpServer(InetSocketAddress("localhost", 8080)) { respond("Hello World".toBody()) }
server.closed().await()
}
}
```