MCPcopy Create free account
hub / github.com/psf/cachecontrol / get_session

Function get_session

cachecontrol/_cmd.py:28–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def get_session() -> requests.Session:
29 adapter = CacheControlAdapter(
30 DictCache(), cache_etags=True, serializer=None, heuristic=None
31 )
32 sess = requests.Session()
33 sess.mount("http://", adapter)
34 sess.mount("https://", adapter)
35
36 sess.cache_controller = adapter.controller # type: ignore[attr-defined]
37 return sess
38
39
40def get_args() -> Namespace:

Callers 1

mainFunction · 0.85

Calls 2

CacheControlAdapterClass · 0.90
DictCacheClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…