Add a class to do http request to the server.