In c# why both HttpClient and HttpContent have headers. What is difference between them. When should I use client headers and when content headers ?
CODE EXAMPLE:
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Add("Test header", "content");
HttpContent content = new StringContent("text", Encoding.UTF8, "application/json");
content.Headers.Add("TestHeader", "Header Content");
await client.PostAsync("url", content);