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

Method update_etag

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

Source from the content-addressed store, hash-verified

53 self.etag_string = f'"ETAG-{self.etag_count}"'
54
55 def update_etag(self, env, start_response):
56 self.update_etag_string()
57 headers = [("Cache-Control", "max-age=5000"), ("Content-Type", "text/plain")]
58 start_response("200 OK", headers)
59 return [pformat(env).encode("utf8")]
60
61 def conditional_get(self, env, start_response):
62 return start_response("304 Not Modified", [])

Callers

nothing calls this directly

Calls 2

update_etag_stringMethod · 0.95
encodeMethod · 0.80

Tested by

no test coverage detected