Current Path: > > opt > hc_python > > > lib > python3.12 > site-packages > pip > _vendor > cachecontrol
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
caches | Directory | - | - | |
__init__.py | File | 677 bytes | May 23 2025 10:34:25. | |
_cmd.py | File | 1737 bytes | May 23 2025 10:34:25. | |
adapter.py | File | 6599 bytes | May 23 2025 10:34:25. | |
cache.py | File | 1953 bytes | May 23 2025 10:34:25. | |
controller.py | File | 19101 bytes | May 23 2025 10:34:25. | |
filewrapper.py | File | 4291 bytes | May 23 2025 10:34:25. | |
heuristics.py | File | 4881 bytes | May 23 2025 10:34:25. | |
py.typed | File | 0 bytes | May 23 2025 10:34:25. | |
serialize.py | File | 5163 bytes | May 23 2025 10:34:25. | |
wrapper.py | File | 1417 bytes | May 23 2025 10:34:25. |
# SPDX-FileCopyrightText: 2015 Eric Larson # # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations from typing import TYPE_CHECKING, Collection from pip._vendor.cachecontrol.adapter import CacheControlAdapter from pip._vendor.cachecontrol.cache import DictCache if TYPE_CHECKING: from pip._vendor import requests from pip._vendor.cachecontrol.cache import BaseCache from pip._vendor.cachecontrol.controller import CacheController from pip._vendor.cachecontrol.heuristics import BaseHeuristic from pip._vendor.cachecontrol.serialize import Serializer def CacheControl( sess: requests.Session, cache: BaseCache | None = None, cache_etags: bool = True, serializer: Serializer | None = None, heuristic: BaseHeuristic | None = None, controller_class: type[CacheController] | None = None, adapter_class: type[CacheControlAdapter] | None = None, cacheable_methods: Collection[str] | None = None, ) -> requests.Session: cache = DictCache() if cache is None else cache adapter_class = adapter_class or CacheControlAdapter adapter = adapter_class( cache, cache_etags=cache_etags, serializer=serializer, heuristic=heuristic, controller_class=controller_class, cacheable_methods=cacheable_methods, ) sess.mount("http://", adapter) sess.mount("https://", adapter) return sess
SILENT KILLER Tool