cos_pool_t *p = NULL;cos_request_options_t *options = NULL;cos_pool_create(&p, NULL);options = cos_request_options_create(p);options->config = cos_config_create(options->pool);// The request domain format is <bucketname-appid>.file.myqcloud.com.cos_str_set(&options->config->endpoint, "<bucketname-appid>.file.myqcloud.com");
Parameter | Description | Type |
endpoint | Set the domain suffix to use the CDN acceleration domain name | String |
cos_pool_t *p = NULL;cos_request_options_t *options = NULL;cos_pool_create(&p, NULL);options = cos_request_options_create(p);options->config = cos_config_create(options->pool);// Set the requested endpoint to `your.domain.com`cos_str_set(&options->config->endpoint, "your.domain.com"); // Custom CDN domain// Set `is_cname` to `1`options->config->is_cname = 1;
Parameter | Description | Type |
endpoint | Set the domain suffix to use a custom CDN endpoint | String |
is_cname | Set this parameter to 1 to use the custom CDN endpoint mode | Int |
cos_pool_t *p = NULL;cos_request_options_t *options = NULL;cos_pool_create(&p, NULL);options = cos_request_options_create(p);options->config = cos_config_create(options->pool);// Set the requested endpoint to `your.domain.com`cos_str_set(&options->config->endpoint, "your.domain.com"); // Custom endpoint// Set `is_cname` to `1`options->config->is_cname = 1;
Parameter | Description | Type |
endpoint | Set the domain suffix to use a custom origin server endpoint | String |
is_cname | Set this parameter to 1 to use the custom origin server endpoint mode | Int |
cos_pool_t *p = NULL;cos_request_options_t *options = NULL;cos_pool_create(&p, NULL);options = cos_request_options_create(p);options->config = cos_config_create(options->pool);// Set the requested endpoint to `cos.accelerate.myqcloud.com`cos_str_set(&options->config->endpoint, "cos.accelerate.myqcloud.com");
Parameter | Description | Type |
endpoint | Set the domain suffix to use a global acceleration endpoint | String |
Apakah halaman ini membantu?