Skip to content

๐Ÿš€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!

Notifications You must be signed in to change notification settings

anhnt88/android.embeddedserver

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Android Embeddedserver

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

๐Ÿ‘‡ 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 [email protected]:nphau/android.embeddedserver.git
cd android.embeddedserver
git checkout master

๐Ÿฒ Screenshots

โœจ Contributing

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

๐Ÿ‘€ Author

Copyright (c) $today.year . All rights reserved.
Last modified $file.lastModified

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!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 98.9%
  • Shell 1.1%