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

Method do_GET

Lib/test/test_httpservers.py:874–879  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

872 self.protocol_version = "HTTP/1.1"
873
874 def do_GET(self):
875 self.get_called = True
876 self.send_response(HTTPStatus.OK)
877 self.send_header('Content-Type', 'text/html')
878 self.end_headers()
879 self.wfile.write(b'<html><body>Data</body></html>\r\n')
880
881 def log_message(self, format, *args):
882 pass

Callers

nothing calls this directly

Calls 4

send_responseMethod · 0.80
send_headerMethod · 0.80
end_headersMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected