(self)
return (
            self._download_warnsize
            and (
                self._response['flow_controlled_size'] > self._download_warnsize
                or content_length_header > self._download_warnsize
            )
            and not self.metadata['reached_warnsize']
        )
Checks if we have received data which exceeds the download warnsize
        and whether we have not already logged about it.

        Returns:
            True if both the above conditions hold true
            False if any of the conditions is false
Checks if we have received data which exceeds the download warnsize
        and whether we have not already logged about it.
Checks if we have received data which exceeds the download warnsize and whether we have not already logged about it .
def _log_warnsize(self) -> bool:
        """Checks if we have received data which exceeds the download warnsize
        and whether we have not already logged about it.

        Returns:
            True if both the above conditions hold true
            False if any of the conditions is false
        """
        content_length_header = int(self._response['headers'].get(b'Content-Length', -1))
        return (
            self._download_warnsize
            and (
                self._response['flow_controlled_size'] > self._download_warnsize
                or content_length_header > self._download_warnsize
            )
            and not self.metadata['reached_warnsize']
        )
def _log_warnsize ( self ) -> bool : content_length_header = int ( self . _response [ 'headers' ] . get ( b'Content-Length' , - 1 ) ) return ( self . _download_warnsize and ( self . _response [ 'flow_controlled_size' ] > self . _download_warnsize or content_length_header > self . _download_warnsize ) and not self . metadata [ 'reached_warnsize' ] )