3
V'ícõ ã @ 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.
Úresponsec C s dd t D S )Nc S s i | ]
}g |qS © r )Ú.0Úeventr r ú2/tmp/pip-build-gk9425m9/requests/requests/hooks.pyú
<dictcomp> s z!default_hooks.<locals>.<dictcomp>)ÚHOOKSr r r r Ú
default_hooks s r c K sP |pi }|j | }|rLt|dr&|g}x$|D ]}||f|}|dk r,|}q,W |S )z6Dispatches a hook dictionary on a given piece of data.Ú__call__N)ÚgetÚhasattr)ÚkeyÚhooksÚ hook_dataÚkwargsÚhookÚ
_hook_datar r r Ú
dispatch_hook s
r N)Ú__doc__r r r r r r r Ú<module>