관리-도구
편집 파일: controller.cpython-38.pyc
U &?�f�H � @ s� d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m Z mZmZ ddl mZ ddlmZmZ ddlmZ e r�dd l mZ dd lmZ ddlmZ ddlmZ e�e�Ze�d �ZdZddd�dd�Z G dd� 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 �strztuple[str, str, str, str, str]��uri�returnc C s@ t �| �}|dk st�|�� }|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�AssertionError�groups)r r r � r �Q/opt/hc_python/lib/python3.8/site-packages/pip/_vendor/cachecontrol/controller.py� parse_uri% s r c @ s� e Zd ZdZd.ddddd�d d �Zeddd�d d��Zeddd�dd��Zddd�dd�Zddd�dd�Z ddd�dd�Z ddd�dd �Zd/ddd!d"d#d$d%�d&d'�Zd0dd!d"dd$d(�d)d*�Z dd!d!d+�d,d-�ZdS )1�CacheControllerz4An interface to see if request should cached or not.NTzBaseCache | None�boolzSerializer | NonezCollection[int] | None)�cache�cache_etags� serializer�status_codesc C s4 |d krt � n|| _|| _|p"t� | _|p,d| _d S )N)�� �� i, r r )r r# r$ r r% �cacheable_status_codes)�selfr# r$ r% r&