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

Method handle_get

Lib/xmlrpc/server.py:959–973  ·  view source on GitHub ↗

Handles the HTTP GET request. Interpret all HTTP GET requests as requests for server documentation.

(self)

Source from the content-addressed store, hash-verified

957 CGI"""
958
959 def handle_get(self):
960 """Handles the HTTP GET request.
961
962 Interpret all HTTP GET requests as requests for server
963 documentation.
964 """
965
966 response = self.generate_html_documentation().encode('utf-8')
967
968 print('Content-Type: text/html')
969 print('Content-Length: %d' % len(response))
970 print()
971 sys.stdout.flush()
972 sys.stdout.buffer.write(response)
973 sys.stdout.buffer.flush()
974
975 def __init__(self):
976 CGIXMLRPCRequestHandler.__init__(self)

Callers

nothing calls this directly

Calls 4

encodeMethod · 0.45
flushMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected