Per https://www.python-httpx.org/compatibility/#proxy-keys, there should
always be a `://` after the protocol. The given examples raise an
exception when used as-is.
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
```
import httpx
-proxies = {"all": "http://127.0.0.1:8080/"}
+proxies = {"all://": "http://127.0.0.1:8080/"}
with httpx.Client(proxies=proxies, verify="/path/to/client.pem") as client:
response = client.get("https://example.org")
```python
proxies = {
- "http": "http://myproxy.org",
- "https": "https://myproxy.org",
+ "http://": "http://myproxy.org",
+ "https://": "https://myproxy.org",
}
```
```python
proxies = {
- "http": "http://myproxy.org",
- "https": "http://myproxy.org",
+ "http://": "http://myproxy.org",
+ "https://": "http://myproxy.org",
}
```