File: D:/Python311/Lib/site-packages/pip/_vendor/cachecontrol/__pycache__/controller.cpython-311.pyc
�
�mi�J � � � d Z ddlmZ ddlZddlZddlZddlZddlZddlm Z ddl
mZmZm
Z
ddlmZ ddlmZmZ ddlmZ erdd l
mZ dd
lmZ ddlmZ ddlmZ ej e� � Z ej d
� � ZdZ dd�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 �ED:\Python311\Lib\site-packages\pip/_vendor/cachecontrol/controller.py� parse_urir '