pistacchio pistacchio - 1 month ago 18
Java Question

Tiniest Java web server

I need the simplest web server to write a minimal web interface for an application. It should be something really featureless like Webrick from Ruby's standard library or BaseHTTPServer from Python's standard library, just a way to keep a server listening to a port and respond to GET requests with a string.

Thanks

Answer

Try nanohttpd. https://github.com/NanoHttpd/nanohttpd i have been usig it for the android dev.

Comments