System::Net::Http::HttpRequestMessage class

HttpRequestMessage class

Represents an HTTP request message. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class HttpRequestMessage : public System::IDisposable

Methods

MethodDescription
Dispose() overrideDisposes the current instance. This method also disposes content of the HTTP request.
get_Content()Gets content of the HTTP request.
get_Headers()Returns the HTTP content headers.
get_Method()Gets the HTTP request method.
get_Properties()Returns the collection of the HTTP request properties.
get_RequestUri()Gets the URI of the requested resource.
get_Version()RTTI information.
HttpRequestMessage()Constructs a new instance.
HttpRequestMessage(System::SharedPtr<HttpMethod>, System::SharedPtr<Uri>)Constructs a new instance.
HttpRequestMessage(System::SharedPtr<HttpMethod>, String)Constructs a new instance.
MarkAsSent()Marks the current request as sent.
set_Content(System::SharedPtr<HttpContent>)Sets content of the HTTP request.
set_Method(System::SharedPtr<HttpMethod>)Sets the HTTP request method.
set_RequestUri(System::SharedPtr<Uri>)Sets the URI of the requested resource.
set_Version(System::Version)Sets the HTTP version.
ToString() const overrideAnalog of C# Object.ToString() method. Enables converting custom objects to string.

See Also