OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
venv
/
lib
/
python3.6
/
site-packages
/
pip
/
_vendor
/
cachecontrol
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 06:58:42 AM
rwxr-xr-x
📄
__init__.py
302 bytes
05/09/2024 06:58:42 AM
rw-r--r--
📄
_cmd.py
1.26 KB
05/09/2024 06:58:42 AM
rw-r--r--
📄
adapter.py
4.77 KB
05/09/2024 06:58:42 AM
rw-r--r--
📄
cache.py
805 bytes
05/09/2024 06:58:42 AM
rw-r--r--
📁
caches
-
05/09/2024 06:58:42 AM
rwxr-xr-x
📄
compat.py
695 bytes
05/09/2024 06:58:42 AM
rw-r--r--
📄
controller.py
13.82 KB
05/09/2024 06:58:42 AM
rw-r--r--
📄
filewrapper.py
2.47 KB
05/09/2024 06:58:42 AM
rw-r--r--
📄
heuristics.py
3.97 KB
05/09/2024 06:58:42 AM
rw-r--r--
📄
serialize.py
6.92 KB
05/09/2024 06:58:42 AM
rw-r--r--
📄
wrapper.py
690 bytes
05/09/2024 06:58:42 AM
rw-r--r--
Editing: wrapper.py
Close
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