Implementing a basic HTTP server for HTTP/1.1 as per RFC 2616