Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }