Class ProxyConfig (2.18.0-rc)

The configuration for a HTTP Proxy.

This configuration can be used for both REST-based and gRPC-based clients. The client library sets the underlying configuration parameters based on the values in this struct.

The full URI is constructed as:

{scheme}://{username}:{password}hostname}:{port}

Any empty values are omitted, except for the scheme which defaults to https. If the hostname value is empty, no HTTP proxy is configured.

Constructors

ProxyConfig()

Functions

set_hostname(std::string) &

@ name Modifiers.

Parameter
NameDescription
v std::string
Returns
TypeDescription
ProxyConfig &

set_hostname(std::string) &&

@ name Modifiers.

Parameter
NameDescription
v std::string
Returns
TypeDescription
ProxyConfig &&

set_port(std::string) &

@ name Modifiers.

Parameter
NameDescription
v std::string
Returns
TypeDescription
ProxyConfig &

set_port(std::string) &&

@ name Modifiers.

Parameter
NameDescription
v std::string
Returns
TypeDescription
ProxyConfig &&

set_username(std::string) &

@ name Modifiers.

Parameter
NameDescription
v std::string
Returns
TypeDescription
ProxyConfig &

set_username(std::string) &&

@ name Modifiers.

Parameter
NameDescription
v std::string
Returns
TypeDescription
ProxyConfig &&

set_password(std::string) &

@ name Modifiers.

Parameter
NameDescription
v std::string
Returns
TypeDescription
ProxyConfig &

set_password(std::string) &&

@ name Modifiers.

Parameter
NameDescription
v std::string
Returns
TypeDescription
ProxyConfig &&

set_scheme(std::string) &

@ name Modifiers.

Parameter
NameDescription
v std::string
Returns
TypeDescription
ProxyConfig &

set_scheme(std::string) &&

@ name Modifiers.

Parameter
NameDescription
v std::string
Returns
TypeDescription
ProxyConfig &&

hostname() const

The HTTP proxy host.

Returns
TypeDescription
std::string const &

port() const

The HTTP proxy port.

Returns
TypeDescription
std::string const &

username() const

The HTTP proxy username.

Returns
TypeDescription
std::string const &

password() const

The HTTP proxy password.

Returns
TypeDescription
std::string const &

scheme() const

The HTTP proxy scheme (http or https).

Returns
TypeDescription
std::string const &