Skip to content
Myr

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

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

authored by eggsort · committed by GitHub · parent eb173bc · Browse files · 1 file+1 added−0 removed
This commit

State

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

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:docs/user/advanced.rst+1 added
465 unmodified lines
466467You can add multiple hooks to a single request. Let's call two hooks at once::468469 >>> r = requests.get('https://httpbin.org/', hooks={'response': [print_url, record_hook]})470 https://httpbin.org/471 >>> r.hook_called472 True473474You can also add hooks to a ``Session`` instance. Any hooks you add will then
663 unmodified lines