Reputation: 788
ASP .NET WEB API's System.Net.Http.HttpRequestMessage
will be reused in ASP.NET 5 or re-designed one will be introduced? If so, what will happen to the former?
Upvotes: 4
Views: 1317
Reputation: 19311
In ASP.NET 5.0, the request class will be HttpRequest. The default implementation of this abstract class is what you have linked in your comment. My understanding is that, going forward, System.Net.Http.HttpRequestMessage
will not be used at the server side. However, System.Net.Http.HttpRequestMessage
can still be used at the client side, for example, with HttpClient
.
Upvotes: 1
Reputation: 28355
Generally introduced classes are synced among the versions, and, as the HttpRequestMessage
were introduced in .NET 4.5
, there are high chances that the class will remain in API.
Right now on the ASP.NET 5
site on API reference page you can find HttpMessageContent.HttpRequestMessage, and it's is being actively used in API 2, for example, in HttpMessageContent class.
Upvotes: 1