modification of the _get_retry method in the Client class to return a request object