From b78413f89c2c2a6fe407f468d026da3c7d96bc4b Mon Sep 17 00:00:00 2001 From: JinmingHu Date: Sat, 9 Apr 2022 07:45:37 +0800 Subject: [PATCH] Update outdated doc for customizing transport (#3536) --- doc/HttpTransportAdapter.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/HttpTransportAdapter.md b/doc/HttpTransportAdapter.md index de7d3a8cd..b40b12616 100644 --- a/doc/HttpTransportAdapter.md +++ b/doc/HttpTransportAdapter.md @@ -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: ```cpp + #include "azure/core/http/curl_transport.hpp" + /* * 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(curlTransportOptions); BlobClientOptions options; - options.TransportOptions.Transport = curlTransportAdapter; + options.Transport.Transport = curlTransportAdapter; auto storageClient = BlobServiceClient(url, credential, options); ```