HttpClient does not return Content-Type

后端 未结 2 1244
轻奢々
轻奢々 2021-01-13 10:32

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          


        
2条回答
  •  清酒与你
    2021-01-13 10:45

    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

提交回复
热议问题