Skip to content
Myr

make list of HOOKS available

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 7647e52 · Browse files · 1 file+3 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+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:requests/hooks.py+3 added
23 unmodified lines
2425import traceback262728HOOKS = ('args', 'pre_request', 'post_request', 'response')293031def dispatch_hook(key, hooks, hook_data):32 """Dispatches a hook dictionary on a given piece of data."""3334 hooks = hooks or dict()
14 unmodified lines