From c684e9f3aae6a34271260dedb06f5b932a2867b9 Mon Sep 17 00:00:00 2001 From: Kar Petrosyan <92274156+karosis88@users.noreply.github.com> Date: Thu, 28 Sep 2023 12:30:49 -0400 Subject: [PATCH] Hishel as an alternative for "cachecontrol" and "requests-cache". (#2866) * Add Caching section in compatibility * typo --- docs/compatibility.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/compatibility.md b/docs/compatibility.md index b2092477..3e8bf9b9 100644 --- a/docs/compatibility.md +++ b/docs/compatibility.md @@ -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/).