File: //lib/python3.6/site-packages/requests/__pycache__/hooks.cpython-36.opt-1.pyc
3
æÈ[õ ã @ s d Z dgZdd„ Zdd„ ZdS )z±
requests.hooks
~~~~~~~~~~~~~~
This module provides the capabilities for the Requests hooks system.
Available hooks:
``response``:
The response generated from a Request.
Zresponsec C s dd„ t D ƒS )Nc S s i | ]
}g |“qS © r )Ú.0Zeventr r ú/usr/lib/python3.6/hooks.pyú
<dictcomp> s z!default_hooks.<locals>.<dictcomp>)ÚHOOKSr r r r Ú
default_hooks s r c K sP |pi }|j | ƒ}|rLt|dƒr&|g}x$|D ]}||f|Ž}|dk r,|}q,W |S )z6Dispatches a hook dictionary on a given piece of data.Ú__call__N)ÚgetÚhasattr)ÚkeyZhooksZ hook_dataÚkwargsÚhookZ
_hook_datar r r Ú
dispatch_hook s
r
N)Ú__doc__r r r
r r r r Ú<module>
s