

def cdn_request(self, uri, method, *args, **kwargs):
    '\n        If the service supports CDN, use this method to access CDN-specific\n        URIs.\n        '
    if (not self.cdn_management_url):
        raise exc.NotCDNEnabled('CDN is not enabled for this service.')
    cdn_uri = ('%s%s' % (self.cdn_management_url, uri))
    mthd = mthd.method_dict.get(method.upper())
    try:
        (resp, resp_body) = mthd(cdn_uri, *args, **kwargs)
    except exc.NotFound as e:
        try:
            mgt_uri = ('%s%s' % (self.management_url, uri))
            (resp, resp_body) = self.method_head(mgt_uri)
        except exc.NotFound:
            raise
        raise exc.NotCDNEnabled('This container is not CDN-enabled.')
    return (resp, resp_body)

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py StorageClient.cdn_request/VarMisuse@57/129 `self`->`mthd`