def require_open(self):
        self.require_not_closed()
        if self.streaming:
            raise exceptions.InvalidOperation('Response is streaming.')
Raises an exception if the response is not open.
dataset/ETHPy150Open armet/python-armet/armet/http/response.py/Response.require_open