403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/pip/_vendor/cachecontrol/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/pip/_vendor/cachecontrol/__pycache__/adapter.cpython-39.pyc
a

X��e��@s�ddlmZddlZddlZddlZddlmZmZmZm	Z	ddl
mZddlm
Z
ddlmZmZddlmZer�ddlmZmZdd	lmZdd
lmZddlmZddlmZGd
d�de�ZdS)�)�annotationsN)�
TYPE_CHECKING�Any�
Collection�Mapping)�HTTPAdapter)�	DictCache)�PERMANENT_REDIRECT_STATUSES�CacheController)�CallbackFileWrapper)�PreparedRequest�Response)�HTTPResponse)�	BaseCache)�
BaseHeuristic)�
Serializercs�eZdZhd�Zd dddddd	d
d
dd�	�fd
d�
Zd!ddddddd	dd��fdd�
Zd"dddd	dd��fdd�
Zdd��fdd�Z�ZS)#�CacheControlAdapter>ZPATCHZPUTZDELETENTzBaseCache | None�boolztype[CacheController] | NonezSerializer | NonezBaseHeuristic | NonezCollection[str] | Noner�None)	�cache�cache_etags�controller_class�
serializer�	heuristic�cacheable_methods�args�kw�returnc
sTt�j|i|��|dur t�n||_||_|p2d|_|p<t}	|	|j||d�|_dS)N)ZGET)rr)�super�__init__rrrrr
�
controller)
�selfrrrrrrrrZcontroller_factory��	__class__��D/usr/lib/python3.9/site-packages/pip/_vendor/cachecontrol/adapter.pyrs
�zCacheControlAdapter.__init__Frz7None | float | tuple[float, float] | tuple[float, None]z
bool | strz4None | bytes | str | tuple[bytes | str, bytes | str]zMapping[str, str] | Noner
)�request�stream�timeout�verify�cert�proxiesrrcs�|p|j}|j|vrfz|j�|�}	Wntjy<d}	Yn0|	rR|j||	dd�S|j�|j�	|��t
��||||||�}
|
S)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 Zcached_request�zlib�error�build_responseZheaders�updateZconditional_headersr�send)r!r&r'r(r)r*r+r�	cacheable�cached_response�respr"r$r%r22s


zCacheControlAdapter.sendr)r&�responser,rrc
s(|p|j}|s�|j|vr�|jr*|j�|�}|jdkrh|j�||�}||urNd}|jdd�|��|}nht	|j�t
vr�|j�||�nJt|j
t�|jj||��|_
|jr�|j�ddd��fdd	�}t�||�|_t��||�}|j|jv�r|j�r|jd
u�sJ�|j�|j�}	|j�|	�||_|S)z�
        Build a response by making a request or using the cache.

        This will end up calling send and returning a potentially
        cached response
        i0TF)Zdecode_contentrr)r!rcs��|jdkr|j��dS)Nr)Z
chunk_left�_fpZ_close�r!�Zsuper_update_chunk_lengthr$r%�_update_chunk_length�s
z@CacheControlAdapter.build_response.<locals>._update_chunk_lengthN)rr-rZapply�statusr Zupdate_cached_response�readZrelease_conn�intr	Zcache_responserr7�	functools�partialZchunkedr:�types�
MethodTyperr0�invalidating_methods�ok�url�	cache_urlr�deleter,)
r!r&r6r,rr3r4r:r5rEr"r9r%r0PsD

�
���z"CacheControlAdapter.build_response)rcs|j��t���dS)N)r�closerr8r"r$r%rG�s
zCacheControlAdapter.close)NTNNNN)FNTNNN)FN)	�__name__�
__module__�__qualname__rBrr2r0rG�
__classcell__r$r$r"r%rs&�$�""�Or)Z
__future__rr>r@r.�typingrrrrZpip._vendor.requests.adaptersrZpip._vendor.cachecontrol.cacherZ#pip._vendor.cachecontrol.controllerr	r
Z$pip._vendor.cachecontrol.filewrapperrZpip._vendor.requestsrr
Zpip._vendor.urllib3rrZ#pip._vendor.cachecontrol.heuristicsrZ"pip._vendor.cachecontrol.serializerrr$r$r$r%�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit