| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/pip/_vendor/cachecontrol/__pycache__/ |
Upload File : |
�
�k�f� � �� � d dl mZ d dlZd dlZd dlZd dlmZmZmZm Z d dl
mZ d dlm
Z
d dlmZmZ d dlmZ er d dlmZmZ d d lmZ d d
lmZ d dlmZ d dlmZ G d
� de� Zy)� )�annotationsN)�
TYPE_CHECKING�Any�
Collection�Mapping)�HTTPAdapter)� DictCache)�PERMANENT_REDIRECT_STATUSES�CacheController)�CallbackFileWrapper)�PreparedRequest�Response)�HTTPResponse)� BaseCache)�
BaseHeuristic)�
Serializerc � � � e Zd Zh d�Z d d� fd�
Z d d � fd�
Z d
d� fd�
Zd� fd�Z� xZS )
�CacheControlAdapter> �PUT�PATCH�DELETEc � �� t �
| � |i |�� |�
t � n|| _ || _ |xs d| _ |xs t } | | j ||�� | _ y )N)�GET)�cache_etags�
serializer)�super�__init__r �cache� heuristic�cacheable_methodsr �
controller)�selfr r �controller_classr r r �args�kw�controller_factory� __class__s ��BC:\Python312\Lib\site-packages\pip/_vendor/cachecontrol/adapter.pyr zCacheControlAdapter.__init__ s\ �� � ���$�%�"�%�$)�M�Y�[�u��
�"���!2�!>�h���-�@���,��J�J�K�J�
��� c �n �� |xs | j }|j |v rf | j j |� } | r| j
|| d�� S |j j | j j |� � t �| �- ||||||� }
|
S # t j
$ r d} Y �ww xY w)z�
Send a request. Use the request information to see if it
exists in the cache and cache the response if we need to and can.
NT)�
from_cache)r �methodr! �cached_request�zlib�error�build_response�headers�update�conditional_headersr �send)r"