pub fn proxy(mut self, proxy_url: impl Into<String>, use_http: bool) -> Self {
        self.proxy.replace(proxy_url.into().into_boxed_str());
        self.use_http = use_http;

        self
    }
/// Set the proxy to use for all HTTP(S) requests.
///
/// **Note** that this isn't currently a traditional proxy, but is for
/// working with something like [twilight's HTTP proxy server].
///
/// # Examples
///
/// Set the proxy to `twilight_http_proxy.internal`:
///
/// ```rust
/// use twilight_http::Client;
///
/// # fn main() -> Result<(), Box<dyn std::error::Error>> {
/// let client = Client::builder()
///     .proxy("twilight_http_proxy.internal", true)
///     .build();
/// # Ok(()) }
/// ```
///
/// [twilight's HTTP proxy server]: https://github.com/twilight-rs/http-proxy
Set the proxy to use for all HTTP(S) requests.
Note** that this isn't currently a traditional proxy, but is for
working with something like [twilight's HTTP proxy server].
Set the proxy to use for all HTTP ( S ) requests . Note ** that this isn ' t currently a traditional proxy but is for working with something like [ twilight ' s HTTP proxy server ] .
pub fn proxy(mut self, proxy_url: impl Into<String>, use_http: bool) -> Self {
        self.proxy.replace(proxy_url.into().into_boxed_str());
        self.use_http = use_http;
        self
    }
pub fn proxy ( mut self , proxy_url : impl Into < String > , use_http : bool ) -> Self { self . proxy . replace ( proxy_url . into ( ) . into_boxed_str ( ) ) ; self . use_http = use_http ; self }
Set the proxy to use for all HTTP(S) requests.
Set the proxy to use for all HTTP ( S ) requests .
mut self
proxy_url
impl Into<String>
use_http
bool
mut self
proxy_url
impl Into<String>
use_http
bool
examples
Set the proxy to `twilight_http_proxy.internal`.

```rust
use twilight_http::Client.
Set the proxy to ` twilight_http_proxy . internal ` . ` ` ` rust use twilight_http :: Client .
fn main() -> result<(), box<dyn std::error::error>> {
let client = Client::builder()
.proxy("twilight_http_proxy.internal", true)
.build().
let client = Client :: builder () . proxy ( " twilight_http_proxy . internal " true ) . build () .
ok(()) }
None