PHP 8.2.30
Preview: wrapper.py Size: 671 B
//lib/python3.8/site-packages/pip/_vendor/cachecontrol/wrapper.py

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 = cache or DictCache()
    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

Directory Contents

Dirs: 2 × Files: 10

Name Size Perms Modified Actions
caches DIR
- drwxr-xr-x 2024-03-21 10:19:28
Edit Download
- drwxr-xr-x 2024-03-21 10:19:28
Edit Download
4.75 KB lrw-r--r-- 2023-10-17 18:30:24
Edit Download
805 B lrw-r--r-- 2023-10-17 18:30:24
Edit Download
695 B lrw-r--r-- 2023-10-17 18:30:24
Edit Download
13.38 KB lrw-r--r-- 2023-10-17 18:30:24
Edit Download
2.47 KB lrw-r--r-- 2023-10-17 18:30:24
Edit Download
3.97 KB lrw-r--r-- 2023-10-17 18:30:24
Edit Download
6.79 KB lrw-r--r-- 2023-10-17 18:30:24
Edit Download
671 B lrw-r--r-- 2023-10-17 18:30:24
Edit Download
1.26 KB lrw-r--r-- 2023-10-17 18:30:24
Edit Download
302 B lrw-r--r-- 2023-10-17 18:30:24
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).