https://github.com/nphausg/android.embeddedserver
🚀A minimal way to create HTTP server in android with Kotlin. Create asynchronous client and server applications. Anything from microservices to multiplatform HTTP client apps in a simple way. Open Source, free, and fun!
https://github.com/nphausg/android.embeddedserver
android http http-server kotlin server
Last synced: about 2 months ago
JSON representation
🚀A minimal way to create HTTP server in android with Kotlin. Create asynchronous client and server applications. Anything from microservices to multiplatform HTTP client apps in a simple way. Open Source, free, and fun!
- Host: GitHub
- URL: https://github.com/nphausg/android.embeddedserver
- Owner: nphausg
- License: mit
- Created: 2021-10-21T16:48:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-07-12T10:39:38.000Z (11 months ago)
- Last Synced: 2025-07-12T12:29:49.172Z (11 months ago)
- Topics: android, http, http-server, kotlin, server
- Language: Kotlin
- Homepage: https://medium.com/geekculture/android-embedded-server-with-ktor-26e7c576263d
- Size: 11.8 MB
- Stars: 55
- Watchers: 1
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-java - Android Embedded Server
README
Android Embedded Server

## 👉 Overview
A minimal way to create HTTP server in android with Kotlin. Create asynchronous client and server applications. Anything from microservices to multiplatform HTTP client apps in a simple way. Open Source, free, and fun!
```kotlin
embeddedServer(Netty, PORT, watchPaths = emptyList()) {
install(WebSockets)
install(CallLogging)
routing {
get("/") {
call.respondText(
text = "Hello!! You are here in ${Build.MODEL}",
contentType = ContentType.Text.Plain
)
}
}
}
```
## 🚀 How to use
Cloning the repository into a local directory and checkout the desired branch:
```
git clone git@github.com:nphausg/android.embeddedserver.git
cd android.embeddedserver
git checkout master
```
## 🍲 Static resource
Config | Demo |
--- | --- |
|
|
```kotlin
staticResources("/static", ""){
default("index.html")
}
```
## 🍲 Screenshots
Fruits | Detail |
--- | --- |
|
|
Device | Connect |
--- | --- |
|
|
## ✨ Contributing
Please feel free to contact me or make a pull request.
## 👀 Author
