I’m developing some software that needs an embedded http server, and I’ve been looking around for tiny options. Give that it’s all java, I’ve looked at tiny versions of tomcat, jetty, and other minimalist solutions. Most stuff weights in over a meg.

But now I’ve found something just my size: 1 file! Check out Nanohttpd. I put it into the system last night, subclassed it, and plugged in my own serve() routine in the descendant and bingo! Instant HTTP - and under a BSD license to boot.