Simple HTTP server in Java using only Java SE API
Since Java SE 6, there’s a builtin HTTP server in Sun Oracle JRE. The com.sun.net.httpserver package summary outlines the involved classes and contains examples. Here’s a kickoff example copypasted from their docs (to all people trying to edit it nonetheless, because it’s an ugly piece of code, please don’t, this is a copy paste, not mine, moreover you should never edit quotations … Read more