Viewing File: /opt/hc_python/lib/python3.12/site-packages/requests/__pycache__/hooks.cpython-312.pyc

�

`�*jr���UdZddlmZddlmZmZddlmZmZerddl	m
Zddlm
Z
dgZd	ed
<dd�Z										dd�Zy
)z�
requests.hooks
~~~~~~~~~~~~~~

This module provides the capabilities for the Requests hooks system.

Available hooks:

``response``:
    The response generated from a Request.
�)�annotations)�Callable�Iterable)�
TYPE_CHECKING�Any�)�_types)�Response�responsez	list[str]�HOOKSc�6�tD�cic]}|g��c}Scc}w)N)r)�events �=/opt/hc_python/lib/python3.12/site-packages/requests/hooks.py�
default_hooksrs��#(�)�5�%�E�2�I�5�)�)��)s�
c��|xsi}|j|�}|r(t|t�r|g}|D]}||fi|��}|��|}�|S)z6Dispatches a hook dictionary on a given piece of data.)�get�
isinstancer)�key�hooks�	hook_data�kwargs�
hooks_dict�	hook_list�hook�
_hook_datas        r�
dispatch_hookr s[����"�J�<F�N�N�3�<O�I���i��*�"��I��D��i�2�6�2�J��%�&�	����N)�returnzdict[str, list[_t.HookType]])
r�strrz_t.HooksInputType | Nonerr
rrrr
)�__doc__�
__future__r�collections.abcrr�typingrr�r	�_t�modelsr
r�__annotations__rr�rr�<module>r)sb��
�#�.�%��� ��<��y��*��	��#�����	�
�r
Back to Directory File Manager