Docs: Add httpx.Proxy to api.md (#3512)

This commit is contained in:
mv-python 2025-03-05 13:52:58 +01:00 committed by GitHub
parent ce7a6e91fb
commit 9e8ab40369
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,3 +159,18 @@ what gets sent over the wire.*
* `def delete(name, [domain], [path])`
* `def clear([domain], [path])`
* *Standard mutable mapping interface*
## `Proxy`
*A configuration of the proxy server.*
```pycon
>>> proxy = Proxy("http://proxy.example.com:8030")
>>> client = Client(proxy=proxy)
```
* `def __init__(url, [ssl_context], [auth], [headers])`
* `.url` - **URL**
* `.auth` - **tuple[str, str]**
* `.headers` - **Headers**
* `.ssl_context` - **SSLContext**