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

Method cache_url

cachecontrol/controller.py:86–87  ·  view source on GitHub ↗
(cls, uri: str)

Source from the content-addressed store, hash-verified

84
85 @classmethod
86 def cache_url(cls, uri: str) -> str:
87 return cls._urlnorm(uri)
88
89 def parse_cache_control(self, headers: Mapping[str, str]) -> dict[str, int | None]:
90 known_directives = {

Callers 6

cached_requestMethod · 0.95
cache_responseMethod · 0.95
build_responseMethod · 0.80
url_to_file_pathFunction · 0.80

Calls 1

_urlnormMethod · 0.80

Tested by 1