in Common/ConnectorCommon/RestApiRepository.cs [79:93]
private async Task<HttpResponseMessage> GetRequestAsync(string resource, Dictionary<string, string> headers, Dictionary<string, string> queryParams, CancellationToken cancellationToken)
{
HttpClient httpClient = this.HttpClient;
if (headers != null)
{
foreach (var header in headers)
{
httpClient.DefaultRequestHeaders.Add(header.Key, header.Value);
}
}
Uri requestUri = CreateRequestUri(resource, queryParams);
var response = await httpClient.GetAsync(requestUri.ToString(), cancellationToken);
return response;
}