reqAddingHeadersHandler method

Future<void> reqAddingHeadersHandler(
  1. COSFetchContext fetchContext
)

添加请求头

Implementation

Future<void> reqAddingHeadersHandler(COSFetchContext fetchContext) async {
  fetchContext.fetchConfig.headers?.forEach((key, value) {
    fetchContext.req?.headers.add(key, value);
  });
}