Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr UnaryOpUSub AttributeLoad NameLoad attr TryFinally body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr BinOpAdd Num AttributeLoad NameLoad attr Return Call NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Num Num Num Num Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Num Num NameLoad Num NameLoad NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd NameLoad UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr If CompareIs AttributeLoad NameLoad attr NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Return Assign NameStore NameLoad TryFinally body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd CompareNotEq NameLoad Num UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad AugAssignAdd AttributeStore NameLoad attr Call NameLoad NameLoad TryExcept body If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad BinOpMod Str NameLoad NameLoad If BoolOpAnd NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AugAssignAdd NameStore BinOpAdd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad finalbody If BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults BinOpPow Num Num NameLoad body Expr Str While UnaryOpNot Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str Num Return Call NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse If Call NameLoad AttributeLoad NameLoad attr Str body Return AttributeLoad AttributeLoad NameLoad attr attr orelse If Call NameLoad AttributeLoad NameLoad attr Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr orelse Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str orelse If Call NameLoad AttributeLoad NameLoad attr Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list decorator_list
N/A N/A logging N/A zlib N/A io _collections HTTPHeaderDict exceptions DecodeError packages.six string_types basestring binary_type util is_fp_closed N/A log N/A N/A logging getLogger __name__ DeflateDecoder N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self _first_try True N/A N/A self _data N/A binary_type N/A N/A self _obj N/A N/A zlib decompressobj N/A __getattr__ N/A N/A self name N/A N/A N/A N/A getattr N/A self _obj name N/A decompress N/A N/A self data N/A N/A N/A N/A N/A self _first_try N/A N/A N/A N/A N/A self _obj decompress data N/A N/A self _data data N/A N/A N/A N/A N/A N/A self _obj decompress data N/A N/A N/A N/A zlib error N/A N/A N/A self _first_try False N/A N/A self _obj N/A N/A zlib decompressobj N/A N/A zlib MAX_WBITS N/A N/A N/A N/A N/A self decompress N/A self _data N/A N/A N/A self _data None N/A N/A _get_decoder N/A N/A mode N/A N/A N/A N/A mode gzip N/A N/A N/A N/A zlib decompressobj N/A 16 N/A zlib MAX_WBITS N/A N/A DeflateDecoder N/A HTTPResponse N/A N/A io IOBase N/A N/A 
    HTTP Response container.

    Backwards-compatible to httplib's HTTPResponse but the response ``body`` is
    loaded and decoded on-demand when the ``data`` property is accessed.

    Extra parameters for behaviour not present in httplib.HTTPResponse:

    :param preload_content:
        If True, the response's body will be preloaded during construction.

    :param decode_content:
        If True, attempts to decode specific content-encoding's based on headers
        (like 'gzip' and 'deflate') will be skipped and raw data will be used
        instead.

    :param original_response:
        When this HTTPResponse wrapper is generated from an httplib.HTTPResponse
        object, it's convenient to include the original for debug purposes. It's
        otherwise unused.
     N/A CONTENT_DECODERS N/A gzip deflate N/A REDIRECT_STATUSES N/A 301 302 303 307 308 __init__ N/A N/A self body headers status version reason strict preload_content decode_content original_response pool connection N/A None 0 0 None 0 True True None None None N/A N/A N/A self headers N/A HTTPHeaderDict N/A headers N/A N/A N/A N/A N/A self headers update headers N/A N/A self status status N/A N/A self version version N/A N/A self reason reason N/A N/A self strict strict N/A N/A self decode_content decode_content N/A N/A self _decoder None N/A N/A self _body N/A N/A body N/A isinstance body basestring body None N/A N/A self _fp None N/A N/A self _original_response original_response N/A N/A self _fp_bytes_read 0 N/A N/A self _pool pool N/A N/A self _connection connection N/A N/A hasattr body read N/A N/A N/A self _fp body N/A N/A preload_content N/A N/A self _body N/A N/A N/A self _body N/A N/A self read decode_content decode_content N/A get_redirect_location N/A N/A self N/A N/A N/A 
        Should we redirect and where to?

        :returns: Truthy redirect location string if we got a redirect status
            code and valid location. ``None`` if redirect status and no
            location. ``False`` if not a redirect status code.
         N/A N/A N/A self status N/A self REDIRECT_STATUSES N/A N/A N/A N/A N/A self headers get location N/A False N/A release_conn N/A N/A self N/A N/A N/A N/A N/A N/A self _pool N/A N/A self _connection N/A N/A N/A N/A N/A N/A self _pool _put_conn N/A self _connection N/A N/A self _connection None N/A data N/A N/A self N/A N/A N/A N/A self _body N/A N/A N/A self _body N/A N/A self _fp N/A N/A N/A N/A self read cache_content True N/A property tell N/A N/A self N/A N/A N/A 
        Obtain the number of bytes pulled over the wire so far. May differ from
        the amount of content returned by :meth:``HTTPResponse.read`` if bytes
        are encoded on the wire (e.g, compressed).
         N/A N/A self _fp_bytes_read N/A read N/A N/A self amt decode_content cache_content N/A None None False N/A N/A 
        Similar to :meth:`httplib.HTTPResponse.read`, but with two additional
        parameters: ``decode_content`` and ``cache_content``.

        :param amt:
            How much of the content to read. If specified, caching is skipped
            because it doesn't make sense to cache partial content as the full
            response.

        :param decode_content:
            If True, will attempt to decode the body based on the
            'content-encoding' header.

        :param cache_content:
            If True, will save the returned data such that the same result is
            returned despite of the state of the underlying file object. This
            is useful if you want the ``.data`` property to continue working
            after having ``.read()`` the file object. (Overridden if ``amt`` is
            set.)
         N/A content_encoding N/A N/A N/A N/A N/A self headers get content-encoding lower N/A N/A N/A self _decoder None N/A N/A N/A content_encoding N/A self CONTENT_DECODERS N/A N/A N/A self _decoder N/A _get_decoder content_encoding N/A N/A decode_content None N/A N/A decode_content N/A self decode_content N/A N/A N/A self _fp None N/A N/A N/A flush_decoder False N/A N/A N/A N/A amt None N/A N/A data N/A N/A N/A self _fp read N/A flush_decoder True N/A N/A cache_content False N/A data N/A N/A N/A self _fp read amt N/A N/A N/A amt 0 N/A data N/A N/A N/A N/A N/A self _fp close N/A flush_decoder True N/A N/A self _fp_bytes_read N/A len data N/A N/A N/A N/A decode_content N/A self _decoder N/A N/A data N/A N/A N/A self _decoder decompress data N/A N/A N/A N/A IOError N/A zlib error N/A e N/A N/A N/A DecodeError N/A Received response with content-encoding: %s, but failed to decode it. content_encoding e N/A N/A flush_decoder decode_content N/A self _decoder N/A N/A buf N/A N/A N/A self _decoder decompress N/A binary_type N/A data N/A buf N/A N/A N/A self _decoder flush N/A cache_content N/A N/A N/A self _body data N/A data N/A N/A N/A N/A self _original_response N/A N/A N/A self _original_response isclosed N/A N/A N/A N/A self release_conn N/A stream N/A N/A self amt decode_content N/A N/A 2 16 None N/A N/A 
        A generator wrapper for the read() method. A call will block until
        ``amt`` bytes have been read from the connection or until the
        connection is closed.

        :param amt:
            How much of the content to read. The generator will return up to
            much data per iteration, but may return less. This is particularly
            likely when using compressed data. However, the empty string will
            never be returned.

        :param decode_content:
            If True, will attempt to decode the body based on the
            'content-encoding' header.
         N/A N/A N/A is_fp_closed N/A self _fp N/A N/A data N/A N/A self read amt amt decode_content decode_content N/A data N/A N/A N/A data N/A from_httplib N/A N/A ResponseCls r N/A response_kw N/A N/A 
        Given an :class:`httplib.HTTPResponse` instance ``r``, return a
        corresponding :class:`urllib3.response.HTTPResponse` object.

        Remaining parameters are passed to the HTTPResponse constructor, along
        with ``original_response=r``.
         N/A headers N/A HTTPHeaderDict N/A N/A k v N/A N/A r getheaders N/A N/A N/A N/A headers add k v N/A strict N/A getattr r strict 0 N/A N/A ResponseCls body r headers headers status N/A r status version N/A r version reason N/A r reason strict strict original_response r response_kw N/A classmethod getheaders N/A N/A self N/A N/A N/A N/A self headers N/A getheader N/A N/A self name default N/A None N/A N/A N/A N/A N/A self headers get name default N/A close N/A N/A self N/A N/A N/A N/A N/A self closed N/A N/A N/A N/A N/A self _fp close N/A closed N/A N/A self N/A N/A N/A N/A N/A self _fp None N/A N/A True N/A N/A N/A hasattr N/A self _fp closed N/A N/A N/A N/A self _fp closed N/A N/A N/A hasattr N/A self _fp isclosed N/A N/A N/A N/A N/A self _fp isclosed N/A N/A True N/A property fileno N/A N/A self N/A N/A N/A N/A N/A self _fp None N/A N/A N/A IOError HTTPResponse has no file to get a fileno from N/A N/A N/A hasattr N/A self _fp fileno N/A N/A N/A N/A N/A self _fp fileno N/A N/A N/A IOError The file-like object  this HTTPResponse is wrapped around has no file descriptor N/A flush N/A N/A self N/A N/A N/A N/A N/A N/A self _fp None N/A hasattr N/A self _fp flush N/A N/A N/A N/A N/A self _fp flush N/A readable N/A N/A self N/A N/A N/A True N/A N/A