![]() |
Kurlyk
|
Stores proxy server, authentication, and transport settings. More...
#include <ProxyConfig.hpp>
Public Member Functions | |
| ProxyConfig () | |
| Constructs an empty HTTP proxy configuration. | |
| ProxyConfig (std::string server, std::string auth, ProxyType type=ProxyType::PROXY_HTTP) | |
| Constructs a proxy configuration with server and authentication values. | |
| void | set_proxy (const std::string &ip, int port, ProxyType type=ProxyType::PROXY_HTTP) |
| Sets the proxy server address and transport type. | |
| void | set_proxy (const std::string &ip, int port, const std::string &username, const std::string &password, ProxyType type=ProxyType::PROXY_HTTP) |
| Sets the proxy server and authentication values. | |
| void | set_proxy_auth (const std::string &username, const std::string &password) |
| Sets proxy authentication credentials. | |
| std::string | get_ip () const |
| Returns the host part of the proxy server address. | |
| int | get_port () const |
| Returns the proxy port. | |
| std::string | get_username () const |
| Returns the proxy username. | |
| std::string | get_password () const |
| Returns the proxy password. | |
| bool | is_valid () const |
| Checks whether the proxy server address is valid. | |
Public Attributes | |
| std::string | proxy_server |
| Proxy address in host:port format. | |
| std::string | proxy_auth |
| Proxy authentication in username:password format. | |
| ProxyType | proxy_type |
| Proxy transport type. | |
| bool | use |
| Indicates whether the proxy is enabled. | |
Stores proxy server, authentication, and transport settings.
Definition at line 23 of file ProxyConfig.hpp.
|
inline |
Constructs an empty HTTP proxy configuration.
Definition at line 30 of file ProxyConfig.hpp.
|
inline |
Constructs a proxy configuration with server and authentication values.
| server | Proxy server address. |
| auth | Proxy authentication credentials. |
| type | Proxy transport type. |
Definition at line 37 of file ProxyConfig.hpp.
|
inline |
Returns the host part of the proxy server address.
Definition at line 77 of file ProxyConfig.hpp.
|
inline |
Returns the proxy password.
Definition at line 106 of file ProxyConfig.hpp.
|
inline |
Returns the proxy port.
Definition at line 85 of file ProxyConfig.hpp.
|
inline |
Returns the proxy username.
Definition at line 98 of file ProxyConfig.hpp.
|
inline |
Checks whether the proxy server address is valid.
Definition at line 114 of file ProxyConfig.hpp.
|
inline |
Sets the proxy server and authentication values.
| ip | Proxy server host or IP address. |
| port | Proxy server port. |
| username | Proxy username. |
| password | Proxy password. |
| type | Proxy transport type. |
Definition at line 58 of file ProxyConfig.hpp.
|
inline |
Sets the proxy server address and transport type.
| ip | Proxy server host or IP address. |
| port | Proxy server port. |
| type | Proxy transport type. |
Definition at line 47 of file ProxyConfig.hpp.
|
inline |
Sets proxy authentication credentials.
| username | Proxy username. |
| password | Proxy password. |
Definition at line 71 of file ProxyConfig.hpp.
| std::string kurlyk::ProxyConfig::proxy_auth |
Proxy authentication in username:password format.
Definition at line 25 of file ProxyConfig.hpp.
| std::string kurlyk::ProxyConfig::proxy_server |
Proxy address in host:port format.
Definition at line 24 of file ProxyConfig.hpp.
| ProxyType kurlyk::ProxyConfig::proxy_type |
Proxy transport type.
Definition at line 26 of file ProxyConfig.hpp.
| bool kurlyk::ProxyConfig::use |
Indicates whether the proxy is enabled.
Definition at line 27 of file ProxyConfig.hpp.