Adding headers when using httpClient.GetAsync
A later answer, but because no one gave this solution… If you do not want to set the header on the HttpClient instance by adding it to the DefaultRequestHeaders, you could set headers per request. But you will be obliged to use the SendAsync() method. This is the right solution if you want to reuse … Read more