web_proxy represents the concept of the web proxy, which can be auto-discovered, disabled, or specified explicitly by the user.
More...
#include <web_utilities.h>
|
enum | web_proxy_mode { use_default = use_default_,
use_auto_discovery = use_auto_discovery_,
disabled = disabled_
} |
|
web_proxy represents the concept of the web proxy, which can be auto-discovered, disabled, or specified explicitly by the user.
web::web_proxy::web_proxy |
( |
| ) |
|
|
inline |
Constructs a proxy with the default settings.
web::web_proxy::web_proxy |
( |
web_proxy_mode |
mode | ) |
|
|
inline |
Creates a proxy with specified mode.
- Parameters
-
web::web_proxy::web_proxy |
( |
uri |
address | ) |
|
|
inline |
Creates a proxy explicitly with provided address.
- Parameters
-
const uri& web::web_proxy::address |
( |
| ) |
const |
|
inline |
Gets this proxy's URI address. Returns an empty URI if not explicitly set by user.
- Returns
- A reference to this proxy's URI.
Gets the credentials used for authentication with this proxy.
- Returns
- Credentials to for this proxy.
bool web::web_proxy::is_auto_discovery |
( |
| ) |
const |
|
inline |
Checks if the auto discovery protocol, WPAD, is to be used.
- Returns
- True if auto discovery enabled, false otherwise.
bool web::web_proxy::is_default |
( |
| ) |
const |
|
inline |
Checks if this proxy was constructed with default settings.
- Returns
- True if default, false otherwise.
bool web::web_proxy::is_disabled |
( |
| ) |
const |
|
inline |
Checks if using a proxy is disabled.
- Returns
- True if disabled, false otherwise.
bool web::web_proxy::is_specified |
( |
| ) |
const |
|
inline |
Checks if a proxy address is explicitly specified by the user.
- Returns
- True if a proxy address was explicitly specified, false otherwise.
Sets the credentials to use for authentication with this proxy.
- Parameters
-
cred | Credentials to use for this proxy. |
The documentation for this class was generated from the following file: