HttpResponseMessage.RequestMessage Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the request message which led to this response message.
public:
property System::Net::Http::HttpRequestMessage ^ RequestMessage { System::Net::Http::HttpRequestMessage ^ get(); void set(System::Net::Http::HttpRequestMessage ^ value); };
public System.Net.Http.HttpRequestMessage RequestMessage { get; set; }
public System.Net.Http.HttpRequestMessage? RequestMessage { get; set; }
member this.RequestMessage : System.Net.Http.HttpRequestMessage with get, set
Public Property RequestMessage As HttpRequestMessage
Property Value
The request message which led to this response message.
Remarks
This property is set to the request message which led to this response message. In the case of a request sent using HttpClient, this property will point to the actual request message leading to the final response. Note that this may not be the same message the user provided when sending the request. This is typically the case if the request needs to be resent due to redirects or authentication. This property can be used to determine what URL actually created the response (useful in case of redirects).