I\'m sending a request with HttpClient
. Server returns two headers which I want return to client. I run it like this:
using (var client = new
You should look at response.Content.Headers
you should find headers relating to the content here. More information about all the content header types can be found on the msdn link below.
https://msdn.microsoft.com/en-us/library/system.net.http.headers.httpcontentheaders(v=vs.118).aspx
Content_type is part of the Content Headers. So you should use:
response.Content.Headers;