HttpServer updated to the new API