System::Net::Http::HttpRequestMessage class
Contents
[
Hide
]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
Method | Description |
---|---|
Dispose() override | Disposes 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 override | Analog of C# Object.ToString() method. Enables converting custom objects to string. |
See Also
- Class IDisposable
- Namespace System::Net::Http
- Library Aspose.TeX for C++