$99 GRAYBYTE WORDPRESS FILE MANAGER $70

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/

HOME
Current File : /usr/lib/python2.7/site-packages/pip/_vendor/urllib3//request.pyo
�
��abc@@sSddlmZddlmZddlmZdgZdefd��YZdS(i(tabsolute_importi(tencode_multipart_formdata(t	urlencodetRequestMethodscB@szeZdZeddddg�Zd
d�Zd
d
ed
d�Zd
d
d�Z	d
d
d�Z
d
d
ed
d	�ZRS(s�
    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.
    tDELETEtGETtHEADtOPTIONScC@s|p	i|_dS(N(theaders(tselfR((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pyt__init__)scK@std��dS(NsMClasses extending RequestMethods must implement their own ``urlopen`` method.(tNotImplemented(R	tmethodturltbodyRtencode_multiparttmultipart_boundarytkw((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pyturlopen,scK@s]|j�}||jkr:|j||d|d||�S|j||d|d||�SdS(s�
        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`.
        tfieldsRN(tuppert_encode_url_methodstrequest_encode_urltrequest_encode_body(R	RR
RRt
urlopen_kw((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pytrequest2scK@sb|dkr|j}ni|d6}|j|�|rO|dt|�7}n|j|||�S(s�
        Make a request using :meth:`urlopen` with the ``fields`` encoded in
        the url. This is useful for request methods like GET, HEAD, DELETE, etc.
        Rt?N(tNoneRtupdateRR(R	RR
RRRtextra_kw((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pyRHs

cK@s�|dkr|j}niid6}|r�d|krFtd��n|rgt|d|�\}	}
nt|�d}	}
|	|d<i|
d6|d<n|dj|�|j|�|j|||�S(s�
        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.
        RRsFrequest got values for both 'fields' and 'body', can only specify one.tboundarys!application/x-www-form-urlencodedsContent-TypeN(RRt	TypeErrorRRRR(R	RR
RRRRRRRtcontent_type((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pyRYs&


N(t__name__t
__module__t__doc__tsetRRR
tTrueRRRR(((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pyR
sN(	t
__future__RtfilepostRtpackages.six.moves.urllib.parseRt__all__tobjectR(((s?/usr/lib/python2.7/site-packages/pip/_vendor/urllib3/request.pyt<module>s	


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 8.23 PM
root / root
0755
contrib
--
3 Mar 2024 8.23 PM
root / root
0755
packages
--
3 Mar 2024 8.23 PM
root / root
0755
util
--
3 Mar 2024 8.23 PM
root / root
0755
__init__.py
2.786 KB
21 Apr 2022 6.08 PM
root / root
0644
__init__.pyc
3.024 KB
21 Apr 2022 6.08 PM
root / root
0644
__init__.pyo
3.024 KB
21 Apr 2022 6.08 PM
root / root
0644
_collections.py
9.965 KB
21 Apr 2022 6.08 PM
root / root
0644
_collections.pyc
12.886 KB
21 Apr 2022 6.08 PM
root / root
0644
_collections.pyo
12.886 KB
21 Apr 2022 6.08 PM
root / root
0644
connection.py
12.698 KB
21 Apr 2022 6.08 PM
root / root
0644
connection.pyc
10.602 KB
21 Apr 2022 6.08 PM
root / root
0644
connection.pyo
10.602 KB
21 Apr 2022 6.08 PM
root / root
0644
connectionpool.py
34.529 KB
21 Apr 2022 6.08 PM
root / root
0644
connectionpool.pyc
26.603 KB
21 Apr 2022 6.08 PM
root / root
0644
connectionpool.pyo
26.603 KB
21 Apr 2022 6.08 PM
root / root
0644
exceptions.py
6.448 KB
21 Apr 2022 6.08 PM
root / root
0644
exceptions.pyc
13.026 KB
21 Apr 2022 6.08 PM
root / root
0644
exceptions.pyo
13.026 KB
21 Apr 2022 6.08 PM
root / root
0644
fields.py
5.804 KB
21 Apr 2022 6.08 PM
root / root
0644
fields.pyc
6.669 KB
21 Apr 2022 6.08 PM
root / root
0644
fields.pyo
6.669 KB
21 Apr 2022 6.08 PM
root / root
0644
filepost.py
2.267 KB
21 Apr 2022 6.08 PM
root / root
0644
filepost.pyc
3.249 KB
21 Apr 2022 6.08 PM
root / root
0644
filepost.pyo
3.249 KB
21 Apr 2022 6.08 PM
root / root
0644
poolmanager.py
16.426 KB
21 Apr 2022 6.08 PM
root / root
0644
poolmanager.pyc
14.7 KB
21 Apr 2022 6.08 PM
root / root
0644
poolmanager.pyo
14.7 KB
21 Apr 2022 6.08 PM
root / root
0644
request.py
5.807 KB
21 Apr 2022 6.08 PM
root / root
0644
request.pyc
5.955 KB
21 Apr 2022 6.08 PM
root / root
0644
request.pyo
5.955 KB
21 Apr 2022 6.08 PM
root / root
0644
response.py
22.366 KB
21 Apr 2022 6.08 PM
root / root
0644
response.pyc
19.129 KB
21 Apr 2022 6.08 PM
root / root
0644
response.pyo
19.129 KB
21 Apr 2022 6.08 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF