def _get(self, path, rest, params=None):
        url = '/'.join(['https:/', self.api_base, path, rest])
        response = self.session.get(url, params=params, stream=True)

        if self.json:
            response_body = response.text
        else:
            response_body = response.content

        try:
            result = self._parser(response_body)
        except ParserException as exc:
            Connection.__setattr__(self, 'response', response)
            raise ClientError('Could not parse response: {!r}'.format(exc.caught))
        except Exception:
            Connection.__setattr__(self, 'response', response)
            raise
        return iter(result.entities), result.entity_count
Base method for subclasses to call.
dataset/ETHPy150Open MediaMath/t1-python/terminalone/connection.py/Connection._get