def read(self, amt=None, decode_content=None, cache_content=False):
        # Note: content-encoding value should be case-insensitive, per RFC 2616
        # Section 3.5
        content_encoding = self.headers.get('content-encoding', '').lower()
        decoder = self.CONTENT_DECODERS.get(content_encoding)
        if decode_content is None:
            decode_content = self._decode_content

        if self._fp is None:
            return

        try:
            if amt is None:
                # cStringIO doesn't like amt=None
                data = self._fp.read()
            else:
                return self._fp.read(amt)

            try:
                if decode_content and decoder:
                    data = decoder(data)
            except (IOError, zlib.error):
                raise DecodeError("Received response with content-encoding: %s, but "
                                  "failed to decode it." % content_encoding)

            if cache_content:
                self._body = data

            return data

        finally:
            if self._original_response and self._original_response.isclosed():
                self.release_conn()
Return number of contained cookies.
dataset/ETHPy150Open Esri/geoprocessing-tools-for-hadoop/requests/packages/urllib3/response.py/HTTPResponse.read--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/cookielib.py/CookieJar.__len__