Writing the HTTP server