Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
_vendor
requests
__pycache__
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: adapters.cpython-39.pyc
a ���fX � @ 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: zddl;m<Z< W n e=�y� dd� Z<Y n0 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, �A/usr/lib/python3.9/site-packages/oci/_vendor/requests/adapters.pyr) 4 s r) F� c s2 e Zd ZdZ� fdd�Zddd�Zd d � Z� ZS )�BaseAdapterzThe Base Transport Adapterc s t t| ��� d S �N)�superr/ �__init__��self�� __class__r, r- r2 @ 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)r4 �request�stream�timeout�verify�cert�proxiesr, r, r- �sendC s zBaseAdapter.sendc C s t �dS )z!Cleans up adapter specific items.Nr7 r3 r, r, r- �closeU s zBaseAdapter.close)FNTNN)�__name__� __module__�__qualname__�__doc__r2 r? r@ � __classcell__r, r, r5 r- r/ = s � r/ c s� e Zd ZdZg d�Zeeeef� fdd� Zdd� Z dd� Z efd d �Zdd� Zd d� Z dd� Zd dd�Zdd� Zdd� Zdd� Zdd� Zd!dd�Z� ZS )"�HTTPAdaptera� The built-in HTTP Adapter for urllib3. Provides a general-case interface for Requests sessions to contact HTTP and HTTPS urls by implementing the Transport Adapter interface. This class will usually be created by the :class:`Session <Session>` class under the covers. :param pool_connections: The number of urllib3 connection pools to cache. :param pool_maxsize: The maximum number of connections to save in the pool. :param max_retries: The maximum number of retries each connection should attempt. Note, this applies only to failed DNS lookups, socket connections and connection timeouts, never to requests where data has made it to the server. By default, Requests does not retry failed connections. If you need granular control over the conditions under which we retry a request, import urllib3's ``Retry`` class and pass that instead. :param pool_block: Whether the connection pool should block for connections. Usage:: >>> import requests >>> s = requests.Session() >>> a = requests.adapters.HTTPAdapter(max_retries=3) >>> s.mount('http://', a) )�max_retries�config�_pool_connections� _pool_maxsize�_pool_blockc sd |t krtddd�| _nt�|�| _i | _i | _tt| ��� || _ || _ || _| j|||d� d S )Nr F)�read��block) �DEFAULT_RETRIESr rG Zfrom_intrH � proxy_managerr1 rF r2 rI rJ rK �init_poolmanager)r4 Zpool_connectionsZpool_maxsizerG Z pool_blockr5 r, r- r2 w s zHTTPAdapter.__init__c s � fdd�� j D �S )Nc s i | ]}|t � |d ��qS r0 )�getattr)�.0�attrr3 r, r- � <dictcomp>� � z,HTTPAdapter.__getstate__.<locals>.<dictcomp>)� __attrs__r3 r, r3 r- �__getstate__� s zHTTPAdapter.__getstate__c C sD i | _ i | _|�� D ]\}}t| ||� q| j| j| j| jd� d S )NrM )rP rH �items�setattrrQ rI rJ rK )r4 �staterT �valuer, r, r- �__setstate__� s �zHTTPAdapter.__setstate__c K s0 || _ || _|| _tf |||dd�|��| _dS )a Initializes a urllib3 PoolManager. This method should not be called from user code, and is only exposed for use when subclassing the :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`. :param connections: The number of urllib3 connection pools to cache. :param maxsize: The maximum number of connections to save in the pool. :param block: Block when no free connections are available. :param pool_kwargs: Extra keyword arguments used to initialize the Pool Manager. T)� num_pools�maxsizerN �strictN)rI rJ rK r �poolmanager)r4 Zconnectionsr_ rN Zpool_kwargsr, r, r- rQ � s ��zHTTPAdapter.init_poolmanagerc K s� || j v r| j | }n||�� �d�r^t|�\}}t|f||| j| j| jd�|�� }| j |<