public async Task <S3ObjectInfo> GetObjectHeadAsync(ObjectHeadRequest request) { using var response = await SendAsync2(request, request.CompletionOption).ConfigureAwait(false); return(S3ObjectInfo.FromResponse(request.BucketName, request.ObjectName !, response)); }
public async Task <S3ObjectInfo> GetObjectHeadAsync(ObjectHeadRequest request, CancellationToken cancelationToken = default) { using var response = await SendAsync2(request, HttpCompletionOption.ResponseHeadersRead, cancelationToken).ConfigureAwait(false); return(S3ObjectInfo.FromResponse(request.BucketName, request.ObjectName !, response)); }