def unregisterProducer(self):
        """
        Stop consuming data from a producer, without disconnecting.

        @return: L{None}
        """
        if self._requestProducer is None:
            return

        if not self._requestProducerStreaming:
            self._requestProducer.stopStreaming()

        self._requestProducer = None
        self._requestProducerStreaming = None

        Stop consuming data from a producer, without disconnecting.

        @return: L{None}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/http.py