What's the difference between HttpResponseMessage and HttpWebResponse?

后端 未结 2 1092
借酒劲吻你
借酒劲吻你 2021-01-17 22:13

They both seem to be different ways of handling responses to the client.

More detail about my problem: I have a server in which when I receive a request from a clien

2条回答
  •  心在旅途
    2021-01-17 22:50

    HttpResponseMessage represent a moden way to use Http. It is being used by REST solutions such as Web API to manipulate status code and the Location header.

    HttpWebResponse is goold old class that contains all the Http information but considers Obsolete.

提交回复
热议问题