System::Net::Http::HttpClient class
Contents
[
Hide
]HttpClient class
Represents a base class of an HTTP client for sending requests and receiving responses. 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 HttpClient : public System::Net::Http::HttpMessageInvoker
Methods
Method | Description |
---|---|
CancelPendingRequests() | Cancels all pending requests. |
get_BaseAddress() | Gets the base address of the resource that is used for sending requests. |
get_DefaultRequestHeaders() | RTTI information. |
get_MaxResponseContentBufferSize() | Gets the maximum number of bytes of response content. |
get_Timeout() | Gets the timespan to wait before the request times out. |
HttpClient() | Constructs a new instance. |
HttpClient(System::SharedPtr<HttpMessageHandler>) | Constructs a new instance. |
HttpClient(System::SharedPtr<HttpMessageHandler>, bool) | Constructs a new instance. |
Send(System::SharedPtr<HttpRequestMessage>, HttpCompletionOption) | Sends the specified HTTP request. |
set_BaseAddress(System::SharedPtr<Uri>) | Sets the base address of the resource that is used for sending requests. |
set_MaxResponseContentBufferSize(int64_t) | Sets the maximum number of bytes of response content. |
set_Timeout(TimeSpan) | Sets the timespan to wait before the request times out. |
See Also
- Class HttpMessageInvoker
- Namespace System::Net::Http
- Library Aspose.PUB for C++