MCPcopy Index your code
hub / github.com/python/cpython / do_GET

Method do_GET

Lib/http/server.py:706–713  ·  view source on GitHub ↗

Serve a GET request.

(self)

Source from the content-addressed store, hash-verified

704 super().__init__(*args, **kwargs)
705
706 def do_GET(self):
707 """Serve a GET request."""
708 f = self.send_head()
709 if f:
710 try:
711 self.copyfile(f, self.wfile)
712 finally:
713 f.close()
714
715 def do_HEAD(self):
716 """Serve a HEAD request."""

Callers

nothing calls this directly

Calls 3

send_headMethod · 0.95
copyfileMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected