utils
library
Functions
-
cosLog(String msg)
→ dynamic
-
-
cosRequest<T>(String method, String action, {required ObjectStoragePutObjectRequest putObjectRequest, Map<String, String?> params = const {}, String? token, String scheme = "https", Stream? stream, Object? data})
→ Future<Response<T>>
-
-
-
getListAndParameters(Map<String, String?> params)
→ List<String>
-
处理请求头和参数列表
-
getSign(String method, String key, {required String secretId, required String secretKey, Map<String, String?> params = const {}, DateTime? signTime, bool anonymous = false})
→ String
-
生成签名
-
hmacSha1(String msg, String key)
→ String
-
使用HMAC-SHA1计算摘要
-
splitFileIntoChunks(PlatformFile file, int partSize)
→ Future<SplitFileChunksResult>
-
-
subElem(XmlElement node, String name)
→ XmlElement
-