관리-도구
편집 파일: controller.cpython-311.pyc
� �܋f�H � � � d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m Z mZmZ ddl mZ ddlmZmZ ddlmZ e rdd l mZ dd lmZ ddlmZ ddlmZ ej e� � Z ej d � � ZdZdd�Z G d� d� � Z!dS )z7 The httplib2 algorithms ported for use with requests. � )�annotationsN)�parsedate_tz)� TYPE_CHECKING� Collection�Mapping)�CaseInsensitiveDict)� DictCache�SeparateBodyBaseCache)� Serializer)�Literal)�PreparedRequest)�HTTPResponse)� BaseCachez9^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?)�- �4 �uri�str�return�tuple[str, str, str, str, str]c � � t � | � � }|�J �|� � � }|d |d |d |d |d fS )z�Parses a URI using the regex given in Appendix B of RFC 3986. (scheme, authority, path, query, fragment) = parse_uri(uri) N� � � � � )�URI�match�groups)r r r s �Z/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_vendor/cachecontrol/controller.py� parse_urir % sQ � � �I�I�c�N�N�E����� �\�\�^�^�F��1�I�v�a�y�&��)�V�A�Y��q� �B�B� c � � e Zd ZdZ d)d*d�Zed+d�� � Zed+d�� � Zd,d�Zd-d�Z d.d�Z d/d�Z d0d1d&�Z d0d2d'�Z d3d(�ZdS )4�CacheControllerz4An interface to see if request should cached or not.NT�cache�BaseCache | None�cache_etags�bool� serializer�Serializer | None�status_codes�Collection[int] | Nonec �~ � |�t � � n|| _ || _ |p t � � | _ |pd| _ d S )N)�� �� i, r r )r r$ r&