Module ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr BoolOpOr NameLoad Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad kwarg body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body AugAssignAdd NameStore BinOpAdd Str Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str Dict If NameLoad body If CompareIn Str NameLoad body Raise Call NameLoad Str If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad orelse Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Dict Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A __future__ absolute_import N/A N/A urllib.parse urlencode N/A N/A N/A ImportError N/A urllib urlencode filepost encode_multipart_formdata N/A __all__ N/A RequestMethods RequestMethods N/A object N/A N/A 
    Convenience mixin for classes who implement a :meth:`urlopen` method, such
    as :class:`~urllib3.connectionpool.HTTPConnectionPool` and
    :class:`~urllib3.poolmanager.PoolManager`.

    Provides behavior for making common types of HTTP request methods and
    decides which type of request field encoding to use.

    Specifically,

    :meth:`.request_encode_url` is for sending requests whose fields are
    encoded in the URL (such as GET, HEAD, DELETE).

    :meth:`.request_encode_body` is for sending requests whose fields are
    encoded in the *body* of the request using multipart or www-form-urlencoded
    (such as for POST, PUT, PATCH).

    :meth:`.request` is for making any kind of request, it will look up the
    appropriate encoding format and use one of the above two methods to make
    the request.

    Initializer parameters:

    :param headers:
        Headers to include with all requests, unless other headers are given
        explicitly.
     N/A _encode_url_methods N/A set N/A DELETE GET HEAD OPTIONS __init__ N/A N/A self headers N/A None N/A N/A N/A self headers N/A headers N/A N/A urlopen N/A N/A self method url body headers encode_multipart multipart_boundary N/A None None True None kw N/A N/A N/A NotImplemented Classes extending RequestMethods must implement their own ``urlopen`` method. N/A request N/A N/A self method url fields headers N/A None None urlopen_kw N/A N/A 
        Make a request using :meth:`urlopen` with the appropriate encoding of
        ``fields`` based on the ``method`` used.

        This is a convenience method that requires the least amount of manual
        effort. It can be used in most situations, while still having the
        option to drop down to more specific methods when necessary, such as
        :meth:`request_encode_url`, :meth:`request_encode_body`,
        or even the lowest level :meth:`urlopen`.
         N/A method N/A N/A method upper N/A N/A method N/A self _encode_url_methods N/A N/A N/A N/A self request_encode_url method url fields fields headers headers urlopen_kw N/A N/A N/A N/A self request_encode_body method url fields fields headers headers urlopen_kw N/A request_encode_url N/A N/A self method url fields headers N/A None None urlopen_kw N/A N/A 
        Make a request using :meth:`urlopen` with the ``fields`` encoded in
        the url. This is useful for request methods like GET, HEAD, DELETE, etc.
         N/A N/A headers None N/A N/A headers N/A self headers N/A extra_kw N/A headers headers N/A N/A N/A extra_kw update urlopen_kw N/A fields N/A N/A url N/A ? N/A urlencode fields N/A N/A N/A self urlopen method url extra_kw N/A request_encode_body N/A N/A self method url fields headers encode_multipart multipart_boundary N/A None None True None urlopen_kw N/A N/A 
        Make a request using :meth:`urlopen` with the ``fields`` encoded in
        the body. This is useful for request methods like POST, PUT, PATCH, etc.

        When ``encode_multipart=True`` (default), then
        :meth:`urllib3.filepost.encode_multipart_formdata` is used to encode
        the payload with the appropriate content type. Otherwise
        :meth:`urllib.urlencode` is used with the
        'application/x-www-form-urlencoded' content type.

        Multipart encoding must be used when posting files, and it's reasonably
        safe to use it in other times too. However, it may break request
        signing, such as with OAuth.

        Supports an optional ``fields`` parameter of key/value strings AND
        key/filetuple. A filetuple is a (filename, data, MIME type) tuple where
        the MIME type is optional. For example::

            fields = {
                'foo': 'bar',
                'fakefile': ('foofile.txt', 'contents of foofile'),
                'realfile': ('barfile.txt', open('realfile').read()),
                'typedfile': ('bazfile.bin', open('bazfile').read(),
                              'image/jpeg'),
                'nonamefile': 'contents of nonamefile field',
            }

        When uploading a file, providing a filename (the first parameter of the
        tuple) is optional but recommended to best mimick behavior of browsers.

        Note that if ``headers`` are supplied, the 'Content-Type' header will
        be overwritten because it depends on the dynamic random boundary string
        which is used to compose the body of the request. The random boundary
        string can be explicitly set with the ``multipart_boundary`` parameter.
         N/A N/A headers None N/A N/A headers N/A self headers N/A extra_kw N/A headers N/A N/A fields N/A N/A N/A body urlopen_kw N/A N/A N/A TypeError request got values for both 'fields' and 'body', can only specify one. N/A encode_multipart N/A N/A N/A body content_type N/A encode_multipart_formdata fields boundary multipart_boundary N/A N/A N/A body content_type N/A N/A urlencode fields application/x-www-form-urlencoded N/A N/A extra_kw N/A body body N/A N/A extra_kw N/A headers N/A Content-Type content_type N/A N/A N/A N/A extra_kw N/A headers update headers N/A N/A N/A extra_kw update urlopen_kw N/A N/A N/A self urlopen method url extra_kw N/A N/A