Function add_proxy

Source
pub async fn add_proxy(
    server: String,
    port: i32,
    enable: bool,
    type: ProxyType,
    client_id: i32,
) -> Result<Proxy, Error>
Expand description

Adds a proxy server for network requests. Can be called before authorization

ยงArguments

  • server - Proxy server domain or IP address
  • port - Proxy server port
  • enable - Pass true to immediately enable the proxy
  • r#type - Proxy type
  • client_id - The client id to send the request to