예제 #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));
 }