Skip to content

Repository files navigation

Android Embedded Server

Build Status

-----------------------------------------------------

👉 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!

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

ConfigDemo
 staticResources("/static", ""){
default("index.html")
}

🍲 Screenshots

FruitsDetail
DeviceConnect

✨ Contributing

Please feel free to contact me or make a pull request.

nphausg

👀 Author

About

🚀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!

Topics

Resources

Security policy

Stars

64 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages