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()); } }
protected virtual HttpRequest CreateHttpRequest(HeadDocumentRequest request) { return(HeadDocumentHttpRequestFactory.Create(request)); }