Hishel as an alternative for "cachecontrol" and "requests-cache". (#2866)

* Add Caching section in compatibility

* typo
This commit is contained in:
Kar Petrosyan 2023-09-28 12:30:49 -04:00 committed by GitHub
parent 5d32e4c1bf
commit c684e9f3aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,6 +201,10 @@ Besides, `httpx.Request()` does not support the `auth`, `timeout`, `follow_redir
If you need to mock HTTPX the same way that test utilities like `responses` and `requests-mock` does for `requests`, see [RESPX](https://github.com/lundberg/respx).
## Caching
If you use `cachecontrol` or `requests-cache` to add HTTP Caching support to the `requests` library, you can use [Hishel](https://hishel.com) for HTTPX.
## Networking layer
`requests` defers most of its HTTP networking code to the excellent [`urllib3` library](https://urllib3.readthedocs.io/en/latest/).