docs: Fix missing hook output in docs example (#7421)

This commit is contained in:
eggsort
2026-05-09 19:51:50 +01:00
committed by GitHub
parent eb173bc819
commit e8d2c015ee

View File

@@ -467,6 +467,7 @@ Let's print some request method arguments at runtime::
You can add multiple hooks to a single request. Let's call two hooks at once::
>>> r = requests.get('https://httpbin.org/', hooks={'response': [print_url, record_hook]})
https://httpbin.org/
>>> r.hook_called
True