$41 GRAYBYTE WORDPRESS FILE MANAGER $97

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

/opt/alt/python37/lib/python3.7/site-packages/requests/__pycache__/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/requests/__pycache__//api.cpython-37.pyc
B

ֈ�`�@s\dZddlmZdd�Zddd�Zdd	�Zd
d�Zddd
�Zddd�Zddd�Z	dd�Z
dS)z�
requests.api
~~~~~~~~~~~~

This module implements the Requests API.

:copyright: (c) 2012 by Kenneth Reitz.
:license: Apache2, see LICENSE for more details.
�)�sessionsc	Ks*t���}|jf||d�|��SQRXdS)a�	Constructs and sends a :class:`Request <Request>`.

    :param method: method for the new :class:`Request` object: ``GET``, ``OPTIONS``, ``HEAD``, ``POST``, ``PUT``, ``PATCH``, or ``DELETE``.
    :param url: URL for the new :class:`Request` object.
    :param params: (optional) Dictionary, list of tuples or bytes to send
        in the query string for the :class:`Request`.
    :param data: (optional) Dictionary, list of tuples, bytes, or file-like
        object to send in the body of the :class:`Request`.
    :param json: (optional) A JSON serializable Python object to send in the body of the :class:`Request`.
    :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`.
    :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.
    :param files: (optional) Dictionary of ``'name': file-like-objects`` (or ``{'name': file-tuple}``) for multipart encoding upload.
        ``file-tuple`` can be a 2-tuple ``('filename', fileobj)``, 3-tuple ``('filename', fileobj, 'content_type')``
        or a 4-tuple ``('filename', fileobj, 'content_type', custom_headers)``, where ``'content-type'`` is a string
        defining the content type of the given file and ``custom_headers`` a dict-like object containing additional headers
        to add for the file.
    :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth.
    :param timeout: (optional) How many seconds to wait for the server to send data
        before giving up, as a float, or a :ref:`(connect timeout, read
        timeout) <timeouts>` tuple.
    :type timeout: float or tuple
    :param allow_redirects: (optional) Boolean. Enable/disable GET/OPTIONS/POST/PUT/PATCH/DELETE/HEAD redirection. Defaults to ``True``.
    :type allow_redirects: bool
    :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.
    :param verify: (optional) Either a boolean, in which case it controls whether we verify
            the server's TLS certificate, or a string, in which case it must be a path
            to a CA bundle to use. Defaults to ``True``.
    :param stream: (optional) if ``False``, the response content will be immediately downloaded.
    :param cert: (optional) if String, path to ssl client cert file (.pem). If Tuple, ('cert', 'key') pair.
    :return: :class:`Response <Response>` object
    :rtype: requests.Response

    Usage::

      >>> import requests
      >>> req = requests.request('GET', 'https://httpbin.org/get')
      >>> req
      <Response [200]>
    )�method�urlN)rZSession�request)rr�kwargsZsession�r�=/opt/alt/python37/lib/python3.7/site-packages/requests/api.pyrs,
rNcKstd|fd|i|��S)adSends a GET request.

    :param url: URL for the new :class:`Request` object.
    :param params: (optional) Dictionary, list of tuples or bytes to send
        in the query string for the :class:`Request`.
    :param \*\*kwargs: Optional arguments that ``request`` takes.
    :return: :class:`Response <Response>` object
    :rtype: requests.Response
    �get�params)r)rr
rrrrr	@sr	cKstd|f|�S)z�Sends an OPTIONS request.

    :param url: URL for the new :class:`Request` object.
    :param \*\*kwargs: Optional arguments that ``request`` takes.
    :return: :class:`Response <Response>` object
    :rtype: requests.Response
    �options)r)rrrrrrNs	rcKs|�dd�td|f|�S)akSends a HEAD request.

    :param url: URL for the new :class:`Request` object.
    :param \*\*kwargs: Optional arguments that ``request`` takes. If
        `allow_redirects` is not provided, it will be set to `False` (as
        opposed to the default :meth:`request` behavior).
    :return: :class:`Response <Response>` object
    :rtype: requests.Response
    Zallow_redirectsF�head)�
setdefaultr)rrrrrrZsrcKstd|f||d�|��S)a�Sends a POST request.

    :param url: URL for the new :class:`Request` object.
    :param data: (optional) Dictionary, list of tuples, bytes, or file-like
        object to send in the body of the :class:`Request`.
    :param json: (optional) json data to send in the body of the :class:`Request`.
    :param \*\*kwargs: Optional arguments that ``request`` takes.
    :return: :class:`Response <Response>` object
    :rtype: requests.Response
    �post)�data�json)r)rrrrrrrrisrcKstd|fd|i|��S)a�Sends a PUT request.

    :param url: URL for the new :class:`Request` object.
    :param data: (optional) Dictionary, list of tuples, bytes, or file-like
        object to send in the body of the :class:`Request`.
    :param json: (optional) json data to send in the body of the :class:`Request`.
    :param \*\*kwargs: Optional arguments that ``request`` takes.
    :return: :class:`Response <Response>` object
    :rtype: requests.Response
    �putr)r)rrrrrrrxsrcKstd|fd|i|��S)a�Sends a PATCH request.

    :param url: URL for the new :class:`Request` object.
    :param data: (optional) Dictionary, list of tuples, bytes, or file-like
        object to send in the body of the :class:`Request`.
    :param json: (optional) json data to send in the body of the :class:`Request`.
    :param \*\*kwargs: Optional arguments that ``request`` takes.
    :return: :class:`Response <Response>` object
    :rtype: requests.Response
    �patchr)r)rrrrrrr�srcKstd|f|�S)z�Sends a DELETE request.

    :param url: URL for the new :class:`Request` object.
    :param \*\*kwargs: Optional arguments that ``request`` takes.
    :return: :class:`Response <Response>` object
    :rtype: requests.Response
    �delete)r)rrrrrr�s	r)N)NN)N)N)�__doc__�rrr	rrrrrrrrrr�<module>s0






Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 11.11 PM
root / root
0755
__init__.cpython-37.pyc
3.751 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
__version__.cpython-37.pyc
0.504 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
_internal_utils.cpython-37.pyc
1.239 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
adapters.cpython-37.pyc
16.381 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
api.cpython-37.pyc
6.492 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
auth.cpython-37.pyc
8.118 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
certs.cpython-37.pyc
0.795 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
compat.cpython-37.pyc
1.637 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
cookies.cpython-37.pyc
18.309 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
exceptions.cpython-37.pyc
5.492 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
help.cpython-37.pyc
2.744 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
hooks.cpython-37.pyc
0.919 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
models.cpython-37.pyc
24.04 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
packages.cpython-37.pyc
0.656 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
sessions.cpython-37.pyc
19.32 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
status_codes.cpython-37.pyc
4.088 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
structures.cpython-37.pyc
4.268 KB
14 Nov 2023 2.18 PM
root / linksafe
0644
utils.cpython-37.pyc
22.513 KB
14 Nov 2023 2.18 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF