Skip to content
Myr

Update dependencies in docs (#969)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Update dependencies in docs * Update README.md Co-authored-by: Florimond Manca <florimond.manca@gmail.com> * Update docs/index.md Co-authored-by: Florimond Manca <florimond.manca@gmail.com>

authored by Tom Christie · committed by GitHub · parent 991915a · Browse files · 3 files+14 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Florimond Manca <florimond.manca@gmail.com>

Diff stats

3 files+14 added−8 removed

  • other:+14 added−8 removed

3 files+14 added−8 removed

modified:docs/advanced.md+5 added-2 removed
631 unmodified lines
632use with `AsyncClient`, or subclass `httpcore.SyncHTTPTransport` to implement a633transport to use with `Client`.634635For example, HTTPX ships with a transport that uses the excellent636[`urllib3` library](https://urllib3.readthedocs.io/en/latest/):636[`urllib3` library](https://urllib3.readthedocs.io/en/latest/), which can be637used with the sync `Client`...638639```python640>>> import httpx641>>> client = httpx.Client(transport=httpx.URLLib3Transport())642>>> client.get("https://example.org")643<Response [200 OK]>644```645645A complete example of a transport implementation would be:646Note that you'll need to install the `urllib3` package to use `URLLib3Transport`.647648A complete example of a custom transport implementation would be:649650```python651import json652653import httpcore
24 unmodified lines
modified:docs/index.md+5 added-3 removed
modified:README.md+4 added-3 removed
106 unmodified lines
107## Dependencies108109The HTTPX project relies on these excellent libraries:110111* `urllib3` - Sync client support.112* `h11` - HTTP/1.1 support.113* `h2` - HTTP/2 support.111* `httpcore` - The underlying transport implementation for `httpx`.112 * `h11` - HTTP/1.1 support.113 * `h2` - HTTP/2 support.114* `certifi` - SSL certificates.115* `chardet` - Fallback auto-detection for response encoding.116* `hstspreload` - determines whether IDNA-encoded host should be only accessed via HTTPS.117* `idna` - Internationalized domain name support.118* `rfc3986` - URL parsing & normalization.119* `sniffio` - Async library autodetection.120* `urllib3` - Support for the `httpx.URLLib3Transport` class. *(Optional)*121* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*122123A huge amount of credit is due to `requests` for the API layout that124much of this work follows, as well as to `urllib3` for plenty of design
4 unmodified lines