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

Method vary_accept

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

Source from the content-addressed store, hash-verified

38 return [pformat(env).encode("utf8")]
39
40 def vary_accept(self, env, start_response):
41 response = pformat(env).encode("utf8")
42
43 headers = [
44 ("Cache-Control", "max-age=5000"),
45 ("Content-Type", "text/plain"),
46 ("Vary", "Accept-Encoding, Accept"),
47 ]
48 start_response("200 OK", headers)
49 return [response]
50
51 def update_etag_string(self):
52 self.etag_count += 1

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected