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

Method dispatch

tests/conftest.py:18–24  ·  view source on GitHub ↗
(self, env)

Source from the content-addressed store, hash-verified

16 self.update_etag_string()
17
18 def dispatch(self, env):
19 path = env["PATH_INFO"][1:].split("/")
20 segment = path.pop(0)
21 if segment and hasattr(self, segment):
22 return getattr(self, segment)
23
24 return None
25
26 def optional_cacheable_request(self, env, start_response):
27 """A request with no hints as to whether it should be

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected