Release Notes
Announcements
// The bucket region can be viewed in the COS console at https://console.tencentcloud.com/cos5/bucket/. For more information on regions, visit https://www.tencentcloud.com/document/product/436/6224?from_cn_redirect=1.String region = "ap-beijing"; // Bucket regionString customDomain = "exampledomain.com"; // Custom origin server domain name// Create a `CosXmlServiceConfig` object and modify the configuration parameters as neededCosXmlServiceConfig serviceConfig = CosXmlServiceConfig(region: region,isDebuggable: false,isHttps: true,hostFormat: customDomain // Modify the requested domain name);// Register the default COS serviceCos().registerDefaultService(serviceConfig);
// The bucket region can be viewed in the COS console at https://console.tencentcloud.com/cos5/bucket/. For more information on regions, visit https://www.tencentcloud.com/document/product/436/6224?from_cn_redirect=1.String region = "ap-beijing"; // Bucket region// Whether to enable global accelerationbool accelerate = true;// Create a `CosXmlServiceConfig` object and modify the configuration parameters as neededCosXmlServiceConfig serviceConfig = CosXmlServiceConfig(region: region,isDebuggable: false,isHttps: true,accelerate: accelerate // Use a global acceleration domain name);// Register the default COS serviceCos().registerDefaultService(serviceConfig);
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan