OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
hps
/
bfaces
/
faces
/
lib
/
python3.10
/
site-packages
/
pip
/
_vendor
/
cachecontrol
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/24/2024 01:44:02 PM
rwxr-xr-x
📄
__init__.py
465 bytes
10/24/2024 01:43:52 PM
rw-r--r--
📁
__pycache__
-
10/24/2024 01:46:12 PM
rwxr-xr-x
📄
_cmd.py
1.35 KB
10/24/2024 01:43:52 PM
rw-r--r--
📄
adapter.py
4.92 KB
10/24/2024 01:43:52 PM
rw-r--r--
📄
cache.py
1.5 KB
10/24/2024 01:43:52 PM
rw-r--r--
📁
caches
-
10/24/2024 01:46:55 PM
rwxr-xr-x
📄
compat.py
778 bytes
10/24/2024 01:43:52 PM
rw-r--r--
📄
controller.py
16.03 KB
10/24/2024 01:43:52 PM
rw-r--r--
📄
filewrapper.py
3.85 KB
10/24/2024 01:43:52 PM
rw-r--r--
📄
heuristics.py
4.06 KB
10/24/2024 01:43:52 PM
rw-r--r--
📄
serialize.py
6.94 KB
10/24/2024 01:43:52 PM
rw-r--r--
📄
wrapper.py
774 bytes
10/24/2024 01:43:52 PM
rw-r--r--
Editing: wrapper.py
Close
# SPDX-FileCopyrightText: 2015 Eric Larson # # SPDX-License-Identifier: Apache-2.0 from .adapter import CacheControlAdapter from .cache import DictCache def CacheControl( sess, cache=None, cache_etags=True, serializer=None, heuristic=None, controller_class=None, adapter_class=None, cacheable_methods=None, ): 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