Module ashpd::desktop::proxy_resolver

source ·
Expand description

Proxy information. Note This portal doesn’t work for sandboxed applications.

§Examples

use ashpd::desktop::proxy_resolver::ProxyResolver;

async fn run() -> ashpd::Result<()> {
    let proxy = ProxyResolver::new().await?;
    let url = url::Url::parse("www.google.com").unwrap();

    println!("{:#?}", proxy.lookup(&url).await?);

    Ok(())
}

Structs§

  • The interface provides network proxy information to sandboxed applications.