pub fn new_with_proxy<U, P>(url: U, proxy_url: P) -> Result<Self, Error>
    where
        U: TryInto<HttpClientUrl, Error = Error>,
        P: TryInto<HttpClientUrl, Error = Error>,
    {
        let url = url.try_into()?;
        let proxy_url = proxy_url.try_into()?;
        Ok(Self {
            inner: if proxy_url.0.is_secure() {
                sealed::HttpClient::new_https_proxy(url.try_into()?, proxy_url.try_into()?)?
            } else {
                sealed::HttpClient::new_http_proxy(url.try_into()?, proxy_url.try_into()?)?
            },
        })
    }
/// Construct a new Tendermint RPC HTTP/S client connecting to the given
/// URL, but via the specified proxy's URL.
///
/// If the RPC endpoint is secured (HTTPS), the proxy will automatically
/// attempt to connect using the [HTTP CONNECT] method.
///
/// [HTTP CONNECT]: https://en.wikipedia.org/wiki/HTTP_tunnel
Construct a new Tendermint RPC HTTP/S client connecting to the given
URL, but via the specified proxy's URL.

If the RPC endpoint is secured (HTTPS), the proxy will automatically
attempt to connect using the [HTTP CONNECT] method.


Construct a new Tendermint RPC HTTP / S client connecting to the given URL but via the specified proxy ' s URL . If the RPC endpoint is secured ( HTTPS ) the proxy will automatically attempt to connect using the [ HTTP CONNECT ] method .
pub fn new_with_proxy<U, P>(url: U, proxy_url: P) -> Result<Self, Error>
    where
        U: TryInto<HttpClientUrl, Error = Error>,
        P: TryInto<HttpClientUrl, Error = Error>,
    {
        let url = url.try_into()?;
        let proxy_url = proxy_url.try_into()?;
        Ok(Self {
            inner: if proxy_url.0.is_secure() {
                sealed::HttpClient::new_https_proxy(url.try_into()?, proxy_url.try_into()?)?
            } else {
                sealed::HttpClient::new_http_proxy(url.try_into()?, proxy_url.try_into()?)?
            },
        })
    }
pub fn new_with_proxy < U , P > ( url : U , proxy_url : P ) -> Result < Self , Error > where U : TryInto < HttpClientUrl , Error = Error > , P : TryInto < HttpClientUrl , Error = Error > , { let url = url . try_into ( ) ? ; let proxy_url = proxy_url . try_into ( ) ? ; Ok ( Self { inner : if proxy_url . 0 . is_secure ( ) { sealed :: HttpClient :: new_https_proxy ( url . try_into ( ) ? , proxy_url . try_into ( ) ? ) ? } else { sealed :: HttpClient :: new_http_proxy ( url . try_into ( ) ? , proxy_url . try_into ( ) ? ) ? } , } ) }
Construct a new Tendermint RPC HTTP/S client connecting to the given
URL, but via the specified proxy's URL.
Construct a new Tendermint RPC HTTP / S client connecting to the given URL but via the specified proxy ' s URL .
url
U
proxy_url
P