azure::storage provides a class operation_context
which has set_proxy()
and set_default_proxy()
methods. However, I could not find any info on how to use it.
For example, how do I make sure that a cloud_blob_client
created afterwards will use the operation?
I'm assuming that the static version of the method (i.e. set_default_proxy()
) will affect all instances of operation.
Will all cloud_blob_client
instances use it?
Usage of web::http::client::http_client
with proxy is more obvious. I can use the following code to configure the client with a proxy:
http_client_config config;
config.set_proxy(web_proxy(web_proxy::use_default));
http_client(uri, config);