HttpResponseMessage Constructor

.NET Framework (current version)
 

Initializes a new instance of the HttpResponseMessage class.

Namespace:   System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

NameDescription
System_CAPS_pubmethodHttpResponseMessage()

Initializes a new instance of the HttpResponseMessage class.

System_CAPS_pubmethodHttpResponseMessage(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.

Return to top
Show: