Skip to content

Commit

Permalink
Fix supported schemes in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
deeprobin committed Oct 21, 2024
1 parent 3ff77d3 commit c9a4338
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion xml/System.Net.Http/HttpClient.xml
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,15 @@ The environment variables used for `DefaultProxy` initialization on Windows and
On systems where environment variables are case-sensitive, the variable names may be all lowercase or all uppercase. The lowercase names are checked first.
The proxy server may be a hostname or IP address, optionally followed by a colon and port number, or it may be an http URL, optionally including a username and password for proxy authentication. The URL must be start with `http`, not `https`, and cannot include any text after the hostname, IP, or port.
The proxy server may be a hostname or IP address, optionally followed by a colon and port number, or it may be an http, https, socks4, socks4a or socks5 URL, optionally including a username and password for proxy authentication. The URL must be start with `http`, `https`, `socks4`, `socks4a` or `socks5`, and cannot include any text after the hostname, IP, or port.
The URL can optionally include a username and password for proxy authentication for the schemes `http`, `https` and `socks5`. For the schemes `socks4` and `socks4a` only an userid is supported.
* **`http`**: `http://[username:password@]hostname[:port]`
* **`https`**: `https://[username:password@]hostname[:port]`
* **`socks4`**: `socks4://[userid@]hostname[:port]`
* **`socks4a`**: `socks4a://[userid@]hostname[:port]`
* **`socks5`**: `socks5://[username:password@]hostname[:port]`
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The value passed cannot be <see langword="null" />.</exception>
Expand Down

0 comments on commit c9a4338

Please sign in to comment.