|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/local/lib/python3.6/site-packages/requests/__pycache__/ |
Upload File : |
3
F�Kd�T � @ s� d Z ddlZddlZddlmZmZ ddlmZ ddl m
Z
ddl mZ ddl
mZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m!Z! ddl"m#Z#m$Z$ ddl%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z, ddl-m.Z. ddl/m0Z0 ddl1m2Z2m3Z3m4Z4mZmZm5Z5m6Z6m7Z7m8Z8mZ ddl9m:Z: yddl;m<Z< W n e=k
�r� dd� Z<Y nX dZ>d Z?dZ@dZAG d!d"� d"eB�ZCG d#d$� d$eC�ZDdS )%z�
requests.adapters
~~~~~~~~~~~~~~~~~
This module contains the transport adapters that Requests uses to define
and maintain connections.
� N)�PoolManager�proxy_from_url)�HTTPResponse)� parse_url)�Timeout)�Retry)�ClosedPoolError)�ConnectTimeoutError)� HTTPError)�
InvalidHeader)�
MaxRetryError)�NewConnectionError)�
ProxyError)�
ProtocolError)�ReadTimeoutError)�SSLError)�
ResponseError)�LocationValueError� )�Response)�urlparse�
basestring)�DEFAULT_CA_BUNDLE_PATH�extract_zipped_paths�get_encoding_from_headers�prepend_scheme_if_needed�get_auth_from_url�
urldefragauth�select_proxy)�CaseInsensitiveDict)�extract_cookies_to_jar)
�ConnectionError�ConnectTimeout�ReadTimeoutr r �
RetryError�
InvalidSchema�InvalidProxyURL�
InvalidURLr )�_basic_auth_str)�SOCKSProxyManagerc O s t d��d S )Nz'Missing dependencies for SOCKS support.)r% )�args�kwargs� r, �5/tmp/pip-build-8nxjc3nm/requests/requests/adapters.pyr) / s r) F�
c s2 e Zd ZdZ� fdd�Zddd�Zd d
� Z� ZS )�BaseAdapterzThe Base Transport Adapterc s t t| �j� d S )N)�superr/ �__init__)�self)� __class__r, r- r1 ; s zBaseAdapter.__init__FNTc C s t �dS )aC Sends PreparedRequest object. Returns Response object.
:param request: The :class:`PreparedRequest <PreparedRequest>` being sent.
:param stream: (optional) Whether to stream the request content.
:param timeout: (optional) How long 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 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
:param cert: (optional) Any user-provided SSL certificate to be trusted.
:param proxies: (optional) The proxies dictionary to apply to the request.
N)�NotImplementedError)r2 �request�stream�timeout�verify�cert�proxiesr, r, r- �send>