def _bodyDataFinished_CONNECTED(self, reason=None):
        """
        Disconnect the protocol and move to the C{'FINISHED'} state.
        """
        if reason is None:
            reason = Failure(ResponseDone(u"Response body fully received"))
        self._bodyProtocol.connectionLost(reason)
        self._bodyProtocol = None
        self._state = 'FINISHED'

        Disconnect the protocol and move to the C{'FINISHED'} state.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/_newclient.py