def open(self): protocol = httplib.HTTP if self.scheme == 'http' else httplib.HTTPS self.__http = protocol(self.endpoint_host, self.endpoint_port)