Also there exists an http module for emacs: https://www.emacswiki.org/emacs/HttpServer
Reply on news.ycombinator.com