Skip to content

Commit

Permalink
Make Proxy::unix more visible in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-freezing-lava committed Aug 4, 2023
1 parent a528de6 commit 56c973e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ use winreg::RegKey;
/// # }
/// ```
///
/// On unix, it is also possible to send request to a unix socket:
/// On unix, it is also possible to send request to a unix socket via url or [Proxy::unix]:
/// ```rust
/// # fn run() -> Result<(), Box<std::error::Error>> {
/// let proxy = reqwest::Proxy::http("unix:///run/snapd.socket")?;
/// let proxy = reqwest::Proxy::all("unix:///run/snapd.socket")?;
/// // equivalent to:
/// let proxy = reqwest::Proxy::unix("/run/snapd.socket");
/// # Ok(())
/// # }
/// ```
Expand Down

0 comments on commit 56c973e

Please sign in to comment.