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

Class Server

examples/benchmark.py:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
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 1

start_serverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…