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

Method __call__

examples/benchmark.py:20–28  ·  view source on GitHub ↗
(self, env, sr)

Source from the content-addressed store, hash-verified

18
19class Server:
20 def __call__(self, env, sr):
21 body = "Hello World!"
22 status = "200 OK"
23 headers = [
24 ("Cache-Control", "max-age=%i" % (60 * 10)),
25 ("Content-Type", "text/plain"),
26 ]
27 sr(status, headers)
28 return body
29
30
31def start_server():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected