## HttpClient::HttpClient() constructor


Constructs a new instance.

```cpp
System::Net::Http::HttpClient::HttpClient()
```

## See Also

* Class [HttpClient](../)
* Namespace [System::Net::Http](../../)
* Library [Aspose.PDF for C++](../../../)
## HttpClient::HttpClient(System::SharedPtr\<HttpMessageHandler\>) constructor


Constructs a new instance.

```cpp
System::Net::Http::HttpClient::HttpClient(System::SharedPtr<HttpMessageHandler> handler)
```


| Parameter | Type | Description |
| --- | --- | --- |
| handler | System::SharedPtr\<HttpMessageHandler\> | The HTTP handler used for sending requests. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [HttpMessageHandler](../../httpmessagehandler/)
* Class [HttpClient](../)
* Namespace [System::Net::Http](../../)
* Library [Aspose.PDF for C++](../../../)
## HttpClient::HttpClient(System::SharedPtr\<HttpMessageHandler\>, bool) constructor


Constructs a new instance.

```cpp
System::Net::Http::HttpClient::HttpClient(System::SharedPtr<HttpMessageHandler> handler, bool disposeHandler)
```


| Parameter | Type | Description |
| --- | --- | --- |
| handler | System::SharedPtr\<HttpMessageHandler\> | The HTTP handler used for sending requests. |
| disposeHandler | bool | The value that indicates if the handler must be disposed when this instance is disposed. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [HttpMessageHandler](../../httpmessagehandler/)
* Class [HttpClient](../)
* Namespace [System::Net::Http](../../)
* Library [Aspose.PDF for C++](../../../)
