public Task <TResponse> DoRequestAsync <TResponse>(HttpMethod method, string path, CancellationToken cancellationToken, PostData data = null, IRequestParameters requestParameters = null ) where TResponse : class, IElasticsearchResponse, new() => Transport.RequestAsync <TResponse>(method, path, cancellationToken, data, requestParameters);
public TResponse DoRequest <TResponse>(HttpMethod method, string path, PostData data = null, IRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => Transport.Request <TResponse>(method, path, data, requestParameters);