Made generic request responsible for handling the response

Updated the request handling so that the generic class
manages the response handling