COSFetchConfig constructor

COSFetchConfig({
  1. required String bucket,
  2. required String key,
  3. required String method,
  4. String? region,
  5. Map<String, String>? headers,
  6. Map<String, String>? params,
  7. List<Future<void> Function(COSFetchContext fetchContext)>? reqHandlers,
  8. List<Future Function(COSFetchContext fetchContext, dynamic data)>? resHandlers,
  9. int? signValidity,
  10. int retryTimes = 3,
})

Implementation

COSFetchConfig({
  required this.bucket,
  required this.key,
  required this.method,
  this.region,
  this.headers,
  this.params,
  this.reqHandlers,
  this.resHandlers,
  this.signValidity,
  this.retryTimes = 3,
});