COSGetObjectUrl extension
- on
Methods
-
getObjectUrl(
{required String bucket, required String key, String? region, bool? sign, bool cache = true, int? signValidity}) → String -
获取对象访问 url
参考文档: https://cloud.tencent.com/document/product/436/57420
sign
链接是否需要带上签名cache
获取的链接是否缓存,目前带签名的链接默认开启缓存,在签名有效期内不会重新生成signValidity
签名有效期,单位 ms