code: def close(self):
          
          if self.sock:
              self.sock.close()   # close it manually... there may be other refs
              self.sock = None
          if self.__response:
              self.__response.close()
              self.__response = None
          self.__state = _CS_IDLE
docs: Close the connection to the HTTP server.