Update outdated doc for customizing transport (#3536)
This commit is contained in:
parent
7083d857af
commit
b78413f89c
@ -108,6 +108,8 @@ Each client holds an internal copy of the options passed in the arguments. This
|
|||||||
|
|
||||||
The libcurl and WinHTTP transport adapters can also be initialized with specific options that expose control of features from the HTTP stack underneath them. For example, you can set a proxy or override the default certificate authority (CA) path for libcurl. See the following example:
|
The libcurl and WinHTTP transport adapters can also be initialized with specific options that expose control of features from the HTTP stack underneath them. For example, you can set a proxy or override the default certificate authority (CA) path for libcurl. See the following example:
|
||||||
```cpp
|
```cpp
|
||||||
|
#include "azure/core/http/curl_transport.hpp"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Customize libcurl HTTP transport adapter.
|
* Customize libcurl HTTP transport adapter.
|
||||||
*/
|
*/
|
||||||
@ -119,7 +121,7 @@ The libcurl and WinHTTP transport adapters can also be initialized with specific
|
|||||||
auto curlTransportAdapter = std::make_shared<Azure::Core::Http::CurlTransport>(curlTransportOptions);
|
auto curlTransportAdapter = std::make_shared<Azure::Core::Http::CurlTransport>(curlTransportOptions);
|
||||||
|
|
||||||
BlobClientOptions options;
|
BlobClientOptions options;
|
||||||
options.TransportOptions.Transport = curlTransportAdapter;
|
options.Transport.Transport = curlTransportAdapter;
|
||||||
auto storageClient = BlobServiceClient(url, credential, options);
|
auto storageClient = BlobServiceClient(url, credential, options);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user