Пример #1
0
        public virtual async Task <DocumentHeaderResponse> HeadAsync(HeadDocumentRequest request, CancellationToken cancellationToken = default)
        {
            var httpRequest = HeadDocumentHttpRequestFactory.Create(request);

            using (var res = await SendAsync(httpRequest, cancellationToken).ForAwait())
            {
                return(await DocumentHeaderReponseFactory.CreateAsync(res).ForAwait());
            }
        }
Пример #2
0
 protected virtual HttpRequest CreateHttpRequest(HeadDocumentRequest request)
 {
     return(HeadDocumentHttpRequestFactory.Create(request));
 }