Edit File: controller.cpython-311.pyc
� Q�d @ � �� � d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m Z mZ ddlm Z ej e� � Z ej d� � Zd Zd � Z G d� de� � ZdS ) z7 The httplib2 algorithms ported for use with requests. � N)�parsedate_tz)�CaseInsensitiveDict� )� DictCache�SeparateBodyBaseCache)� Serializerz9^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?)�- �4 c � � t � | � � � � � }|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) r � � � � )�URI�match�groups)�urir s �t/builddir/build/BUILD/cloudlinux-venv-1.0.2/venv/lib/python3.11/site-packages/pip/_vendor/cachecontrol/controller.py� parse_urir sD � � �Y�Y�s�^�^� "� "� $� $�F��1�I�v�a�y�&��)�V�A�Y��q� �B�B� c �p � e Zd ZdZ d d�Zed� � � Zed� � � Zd� Zd� Z d � Z dd �Zdd�Zd� Z dS )�CacheControllerz4An interface to see if request should cached or not.NTc �~ � |�t � � n|| _ || _ |p t � � | _ |pd| _ d S )N)�� �� i, r r )r �cache�cache_etagsr � serializer�cacheable_status_codes)�selfr r r �status_codess r �__init__zCacheController.__init__'