Modernize interfaces of HTTPServer, hide implementation details