(self)
Handles the HTTP GET request.

        Interpret all HTTP GET requests as requests for server
        documentation.
Handles the HTTP GET request.
Handles the HTTP GET request .
def do_GET(self):
        """Handles the HTTP GET request.

        Interpret all HTTP GET requests as requests for server
        documentation.
        """
        # Check that the path is legal
        if not self.is_rpc_path_valid():
            self.report_404()
            return

        response = self.server.generate_html_documentation().encode('utf-8')
        self.send_response(200)
        self.send_header("Content-type", "text/html")
        self.send_header("Content-length", str(len(response)))
        self.end_headers()
        self.wfile.write(response)
def do_GET ( self ) : # Check that the path is legal if not self . is_rpc_path_valid ( ) : self . report_404 ( ) return response = self . server . generate_html_documentation ( ) . encode ( 'utf-8' ) self . send_response ( 200 ) self . send_header ( "Content-type" , "text/html" ) self . send_header ( "Content-length" , str ( len ( response ) ) ) self . end_headers ( ) self . wfile . write ( response )