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

def do_GET(self):

    if (not self.is_rpc_path_valid()):
        self.report_404()
        return
    response = self.server.generate_html_documentation()
    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)
