summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook.git@proton.me>2022-12-04 11:45:35 -0600
committerJordan Cook <jordan.cook.git@proton.me>2022-12-13 16:27:49 -0600
commita23bbd8a5da0e0f7ffd548e18d53000198836700 (patch)
tree499d8679d07c70012d06f8fa3e1874ca59b83a65 /docs
parenteec5160cb2714fb9a5982def531185033ed1fb64 (diff)
downloadrequests-cache-a23bbd8a5da0e0f7ffd548e18d53000198836700.tar.gz
Minor edits for cache inspection page
Diffstat (limited to 'docs')
-rw-r--r--docs/user_guide/inspection.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/user_guide/inspection.md b/docs/user_guide/inspection.md
index 9f9991e..339afba 100644
--- a/docs/user_guide/inspection.md
+++ b/docs/user_guide/inspection.md
@@ -94,8 +94,13 @@ You can use {py:meth}`.BaseCache.urls` to see all URLs currently in the cache:
['https://httpbin.org/get', 'https://httpbin.org/stream/100']
```
+### Other response details
If needed, you can access all responses via `CachedSession.cache.responses`, which is a dict-like
-interface to the cache backend. For example, if you wanted to to see all URLs requested with a specific method:
+interface to the cache backend, where:
+* Keys are cache keys (a hash of matched request information)
+* Values are {py:class}`.CachedResponse` objects
+
+For example, if you wanted to see URLs only for `POST` requests:
```python
>>> post_urls = [
... response.url for response in session.cache.responses.values()