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

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()
