def handleResponseEnd(self):
        """
        The response has been completely received.

        This callback may be invoked more than once per request.
        """
        if self.__buffer is not None:
            b = self.__buffer.getvalue()
            self.__buffer = None
            self.handleResponse(b)

        The response has been completely received.

        This callback may be invoked more than once per request.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/http.py