'Similar to :meth:`HTTPResponse.read`, but with an additional
parameter: ``decode_content``.
:param decode_content:
If True, will attempt to decode the body based on the
\'content-encoding\' header.'

def read_chunked(self, amt=None, decode_content=None):

    self._init_decoder()
    if (not self.chunked):
        raise ResponseNotChunked("Response    is    not    chunked.    Header    'transfer-encoding:    chunked'    is    missing.")
    if (self._original_response and is_response_to_head(self._original_response)):
        self._original_response.close()
        return
    with self._error_catcher():
        while True:
            self._update_chunk_length()
            if (self.chunk_left == 0):
                break
            chunk = self._handle_chunk(amt)
            (yield self._decode(chunk, decode_content=decode_content, flush_decoder=True))
        while True:
            line = self._fp.fp.readline()
            if (not line):
                break
            if (line == '\r\n'):
                break
        if self._original_response:
            self._original_response.close()
