HttpResponseMessage Constructor
.NET Framework (current version)
Initializes a new instance of the HttpResponseMessage class.
Assembly: System.Net.Http (in System.Net.Http.dll)
| Name | Description | |
|---|---|---|
![]() | HttpResponseMessage() | Initializes a new instance of the HttpResponseMessage class. |
![]() | HttpResponseMessage(HttpStatusCode) | Initializes a new instance of the HttpResponseMessage class with a specific StatusCode. |
A common way to get an HttpResponseMessage is from one of the HttpClient.SendAsync(HttpRequestMessage) methods.
Show:
