Stay organized with collections Save and categorize content based on your preferences.
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.
@ name Modifiers.
Parameter Name Descriptionv
std::string
ProxyConfig &
set_hostname(std::string) &&
@ name Modifiers.
Parameter Name Descriptionv
std::string
ProxyConfig &&
set_port(std::string) &
@ name Modifiers.
Parameter Name Descriptionv
std::string
ProxyConfig &
set_port(std::string) &&
@ name Modifiers.
Parameter Name Descriptionv
std::string
ProxyConfig &&
set_username(std::string) &
@ name Modifiers.
Parameter Name Descriptionv
std::string
ProxyConfig &
set_username(std::string) &&
@ name Modifiers.
Parameter Name Descriptionv
std::string
ProxyConfig &&
set_password(std::string) &
@ name Modifiers.
Parameter Name Descriptionv
std::string
ProxyConfig &
set_password(std::string) &&
@ name Modifiers.
Parameter Name Descriptionv
std::string
ProxyConfig &&
set_scheme(std::string) &
@ name Modifiers.
Parameter Name Descriptionv
std::string
ProxyConfig &
set_scheme(std::string) &&
@ name Modifiers.
Parameter Name Descriptionv
std::string
ProxyConfig &&
hostname() const
The HTTP proxy host.
Returns Type Descriptionstd::string const &
port() const
The HTTP proxy port.
Returns Type Descriptionstd::string const &
username() const
The HTTP proxy username.
Returns Type Descriptionstd::string const &
password() const
The HTTP proxy password.
Returns Type Descriptionstd::string const &
scheme() const
The HTTP proxy scheme (http or https).
Returns Type Descriptionstd::string const &
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["This document outlines the `ProxyConfig` class for configuring HTTP proxies in C++ clients, supporting both REST and gRPC connections."],["The `ProxyConfig` class allows setting parameters such as hostname, port, username, password, and scheme to define the proxy details."],["The full proxy URI is dynamically constructed based on provided values, with the scheme defaulting to `https` and omitting any empty parameters besides the scheme."],["Several `set_` methods are available for each parameter, offering both lvalue and rvalue reference overloads for modifying the `ProxyConfig` object."],["The webpage provides a comprehensive list of previous versions of the `ProxyConfig` class, ranging from version 2.37.0-rc down to version 2.10.1, in addition to the current version 2.16.0."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4