LuciadCPillar 2023.1.04
|
Builder for the luciad::HttpClient
class.
More...
#include <luciad/net/http/HttpClient.h>
Public Member Functions | |
Builder (Builder &&other) noexcept | |
Builder (const Builder &other) | |
~Builder () | |
std::shared_ptr< HttpClient > | build () const |
Returns an luciad::HttpClient , based on the properties set on this builder. More... | |
Builder & | credentialProvider (std::shared_ptr< ICredentialsProvider > credentialsProvider) |
Sets the credentials provider used by the HttpClient. More... | |
Builder & | httpRequestOptions (HttpRequestOptions httpRequestOptions) |
Sets the HTTP request options to send with each HTTP request. More... | |
Builder & | operator= (Builder other) noexcept |
Builder & | proxySelector (std::shared_ptr< IProxySelector > proxySelector) |
Sets the proxy selector used by the HttpClient. More... | |
Builder for the luciad::HttpClient
class.
Instances of HttpClient::Builder are created by calling luciad::HttpClient::newBuilder
.
luciad::HttpClient::Builder::Builder | ( | const Builder & | other | ) |
|
noexcept |
luciad::HttpClient::Builder::~Builder | ( | ) |
std::shared_ptr< HttpClient > luciad::HttpClient::Builder::build | ( | ) | const |
Returns an luciad::HttpClient
, based on the properties set on this builder.
luciad::HttpClient
, based on the properties set on this builder. Builder & luciad::HttpClient::Builder::credentialProvider | ( | std::shared_ptr< ICredentialsProvider > | credentialsProvider | ) |
Sets the credentials provider
used by the HttpClient.
This parameter is optional. If not set, the credentials provider
is taken from the environment
.
credentialsProvider | The credential provider to use. |
Builder & luciad::HttpClient::Builder::httpRequestOptions | ( | HttpRequestOptions | httpRequestOptions | ) |
Sets the HTTP request options
to send with each HTTP request.
This parameter is optional.
httpRequestOptions | The http request options. |
Builder & luciad::HttpClient::Builder::proxySelector | ( | std::shared_ptr< IProxySelector > | proxySelector | ) |
Sets the proxy selector
used by the HttpClient.
This parameter is optional. If not set, the proxy selector
is taken from the environment
.
proxySelector | The proxy selector to use. |