Repository URL to install this package:
|
Version:
0.1.31 ▾
|
odigos-demo-inventory
/
opt
/
odigos-demo-inventory
/
site-packages
/
cachecontrol
/
__pycache__
/
controller.cpython-311.pyc
|
|---|
§
iµµhG ã ó 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
¦ « ZdZddZ 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 )zParses 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 úB/usr/local/lib/python3.11/site-packages/cachecontrol/controller.pyÚ parse_urir % sQ õ
IIcNNEØÐÐÐØ
\\^^FØ1Ivay &¨¤)¨V°A¬Y¸¸q¼ ÐBÐBó c ó e Zd ZdZ d)d*dZed+d¦ « Zed+d¦ « Zd,dZd-dZ d.dZ
d/dZ 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&