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

Method __call__

tests/conftest.py:114–122  ·  view source on GitHub ↗
(self, env, start_response)

Source from the content-addressed store, hash-verified

112 return [body]
113
114 def __call__(self, env, start_response):
115 func = self.dispatch(env)
116
117 if func:
118 return func(env, start_response)
119
120 headers = [("Cache-Control", "max-age=5000"), ("Content-Type", "text/plain")]
121 start_response("200 OK", headers)
122 return [pformat(env).encode("utf8")]
123
124
125@pytest.fixture(scope="session")

Callers

nothing calls this directly

Calls 2

dispatchMethod · 0.95
encodeMethod · 0.80

Tested by

no test coverage detected