def ex_enable_static_website(self, container, index_file='index.html'):
        container_name = container.name
        headers = {'X-Container-Meta-Web-Index': index_file}

        # pylint: disable=unexpected-keyword-arg
        response = self.connection.request('/%s' % (container_name),
                                           method='POST',
                                           headers=headers,
                                           cdn_request=False)

        return response.status in [httplib.CREATED, httplib.ACCEPTED]
Enable serving a static website.
dataset/ETHPy150Open apache/libcloud/libcloud/storage/drivers/cloudfiles.py/CloudFilesStorageDriver.ex_enable_static_website