How it works...

We created a web server by instantiating the HTTPServer class from the BaseHTTPServer module. We attached a custom request handler to this server instance, which compresses every client response using a compress_buffer() method. A predefined HTML content has been supplied to the clients.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset