projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7647e52
)
make list of HOOKS available
author
Kenneth Reitz
<me@kennethreitz.com>
Sat, 21 Jan 2012 12:07:18 +0000
(07:07 -0500)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sat, 21 Jan 2012 12:07:18 +0000
(07:07 -0500)
requests/hooks.py
patch
|
blob
|
history
diff --git
a/requests/hooks.py
b/requests/hooks.py
index
dee4b1f
..
3560b89
100644
(file)
--- a/
requests/hooks.py
+++ b/
requests/hooks.py
@@
-25,6
+25,9
@@
Available hooks:
import traceback
+HOOKS = ('args', 'pre_request', 'post_request', 'response')
+
+
def dispatch_hook(key, hooks, hook_data):
"""Dispatches a hook dictionary on a given piece of data."""