COSFetchConfig class

Constructors

COSFetchConfig({required String bucket, required String key, required String method, String? region, Map<String, String>? headers, Map<String, String>? params, List<Future<void> Function(COSFetchContext fetchContext)>? reqHandlers, List<Future Function(COSFetchContext fetchContext, dynamic data)>? resHandlers, int? signValidity, int retryTimes = 3})

Properties

alreadyRetryTimes int
重试次数
getter/setter pair
bucket String
存储桶
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
请求头
final
isRetryTimesExceed bool
是否超过重试次数
no setter
key String
存储对象
final
method String
请求方法
final
params Map<String, String>?
请求参数
final
region String?
存储桶所在地域
final
reqHandlers List<Future<void> Function(COSFetchContext fetchContext)>?
请求处理函数
final
resHandlers List<Future Function(COSFetchContext fetchContext, dynamic data)>?
响应处理函数
final
retryTimes int
发生网络失败时的重试次数,默认会重试 3 次
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signValidity int?
签名有效期
final

Methods

increaseRetryTimes() → dynamic
记录重试次数
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited