3 g÷ÔYÿã@sdZdgZdd„Zdd„ZdS)z± requests.hooks ~~~~~~~~~~~~~~ This module provides the capabilities for the Requests hooks system. Available hooks: ``response``: The response generated from a Request. ÚresponsecCstdd„tDƒƒS)Ncss|]}|gfVqdS)N©)Ú.0Úeventrrú?/Users/olari/OneDrive/sandbox/awsBlog2/lambda/requests/hooks.pyú sz default_hooks..)ÚdictÚHOOKSrrrrÚ default_hookssr cKsR|ptƒ}|j|ƒ}|rNt|dƒr(|g}x$|D]}||f|Ž}|dk r.|}q.W|S)z6Dispatches a hook dictionary on a given piece of data.Ú__call__N)rÚgetÚhasattr)ÚkeyÚhooksÚ hook_dataÚkwargsÚhookÚ _hook_datarrrÚ dispatch_hooks     rN)Ú__doc__rr rrrrrÚ s