(self)
Set-up the _decoder attribute if necessar.
Set-up the _decoder attribute if necessar.
Set - up the _decoder attribute if necessar .
def _init_decoder(self):
        """
        Set-up the _decoder attribute if necessar.
        """
        # Note: content-encoding value should be case-insensitive, per RFC 7230
        # Section 3.2
        content_encoding = self.headers.get('content-encoding', '').lower()
        if self._decoder is None and content_encoding in self.CONTENT_DECODERS:
            self._decoder = _get_decoder(content_encoding)
def _init_decoder ( self ) : # Note: content-encoding value should be case-insensitive, per RFC 7230 # Section 3.2 content_encoding = self . headers . get ( 'content-encoding' , '' ) . lower ( ) if self . _decoder is None and content_encoding in self . CONTENT_DECODERS : self . _decoder = _get_decoder ( content_encoding )