DevRev interview question

How would you go about implementing a basic HTTP server in Java?