(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 handle_get(self):
        """Handles the HTTP GET request.

        Interpret all HTTP GET requests as requests for server
        documentation.
        """

        response = self.generate_html_documentation().encode('utf-8')

        print('Content-Type: text/html')
        print('Content-Length: %d' % len(response))
        print()
        sys.stdout.flush()
        sys.stdout.buffer.write(response)
        sys.stdout.buffer.flush()
def handle_get ( self ) : response = self . generate_html_documentation ( ) . encode ( 'utf-8' ) print ( 'Content-Type: text/html' ) print ( 'Content-Length: %d' % len ( response ) ) print ( ) sys . stdout . flush ( ) sys . stdout . buffer . write ( response ) sys . stdout . buffer . flush ( )