|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /proc/17567/root/usr/local/lib/python3.6/site-packages/requests/__pycache__/ |
Upload File : |
3
F�Kd� � @ 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-8nxjc3nm/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|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)�key�hooks� hook_data�kwargs�hook�
_hook_datar r r �
dispatch_hook s
r N)�__doc__r r r r r r r �<module>
s