|
olp-cpp-sdk
1.23.1
|
Contains a proxy configuration for the network interface that is applied per request. More...
#include <NetworkProxySettings.h>
Public Types | |
| enum class | Type { NONE , HTTP , HTTPS , SOCKS4 , SOCKS4A , SOCKS5 , SOCKS5_HOSTNAME } |
| The proxy type. More... | |
Public Member Functions | |
| Type | GetType () const |
| Gets the proxy type. More... | |
| NetworkProxySettings & | WithType (Type type) |
| Sets the proxy type. More... | |
| const std::string & | GetHostname () const |
| Gets the proxy hostname. More... | |
| NetworkProxySettings & | WithHostname (std::string hostname) |
| Sets the proxy hostname. More... | |
| std::uint16_t | GetPort () const |
| Gets the proxy port. More... | |
| NetworkProxySettings & | WithPort (std::uint16_t port) |
| Sets the proxy port. More... | |
| const std::string & | GetUsername () const |
| Gets the username. More... | |
| NetworkProxySettings & | WithUsername (std::string username) |
| Sets the username. More... | |
| const std::string & | GetPassword () const |
| Gets the password. More... | |
| NetworkProxySettings & | WithPassword (std::string password) |
| Sets the password. More... | |
Contains a proxy configuration for the network interface that is applied per request.
|
strong |
The proxy type.
| Enumerator | |
|---|---|
| NONE | Don't use the proxy. |
| HTTP | HTTP proxy as in https://www.ietf.org/rfc/rfc2068.txt. |
| HTTPS | HTTPS proxy as in https://www.ietf.org/rfc/rfc2818.txt. |
| SOCKS4 | SOCKS4 proxy. |
| SOCKS4A | SOCKS4a proxy. Proxy resolves the URL hostname. |
| SOCKS5 | SOCKS5 proxy. |
| SOCKS5_HOSTNAME | SOCKS5 Proxy. Proxy resolves the URL hostname. |
| const std::string& olp::http::NetworkProxySettings::GetHostname | ( | ) | const |
Gets the proxy hostname.
| const std::string& olp::http::NetworkProxySettings::GetPassword | ( | ) | const |
Gets the password.
| std::uint16_t olp::http::NetworkProxySettings::GetPort | ( | ) | const |
Gets the proxy port.
| Type olp::http::NetworkProxySettings::GetType | ( | ) | const |
Gets the proxy type.
| const std::string& olp::http::NetworkProxySettings::GetUsername | ( | ) | const |
Gets the username.
| NetworkProxySettings& olp::http::NetworkProxySettings::WithHostname | ( | std::string | hostname | ) |
Sets the proxy hostname.
| [in] | hostname | The proxy hostname. |
| NetworkProxySettings& olp::http::NetworkProxySettings::WithPassword | ( | std::string | password | ) |
Sets the password.
| [in] | password | The password. |
| NetworkProxySettings& olp::http::NetworkProxySettings::WithPort | ( | std::uint16_t | port | ) |
Sets the proxy port.
| [in] | port | The proxy port. |
| NetworkProxySettings& olp::http::NetworkProxySettings::WithType | ( | Type | type | ) |
Sets the proxy type.
| [in] | type | The proxy type. |
| NetworkProxySettings& olp::http::NetworkProxySettings::WithUsername | ( | std::string | username | ) |
Sets the username.
| [in] | username | The username. |