SILENT KILLERPanel

Current Path: > > opt > alt > python38 > lib > > python3.8 > site-packages > pip > _vendor > requests


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python38/lib//python3.8/site-packages/pip/_vendor/requests

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 5178 bytes November 13 2023 21:40:26.
__version__.py File 440 bytes November 13 2023 21:40:26.
_internal_utils.py File 1397 bytes November 13 2023 21:40:26.
adapters.py File 21443 bytes November 13 2023 21:40:26.
api.py File 6377 bytes November 13 2023 21:40:26.
auth.py File 10187 bytes November 13 2023 21:40:26.
certs.py File 441 bytes November 13 2023 21:40:26.
compat.py File 1286 bytes November 13 2023 21:40:26.
cookies.py File 18560 bytes November 13 2023 21:40:26.
exceptions.py File 3823 bytes November 13 2023 21:40:26.
help.py File 3879 bytes November 13 2023 21:40:26.
hooks.py File 733 bytes November 13 2023 21:40:26.
models.py File 35287 bytes November 13 2023 21:40:26.
packages.py File 695 bytes November 13 2023 21:40:26.
sessions.py File 30180 bytes November 13 2023 21:40:26.
status_codes.py File 4235 bytes November 13 2023 21:40:26.
structures.py File 2912 bytes November 13 2023 21:40:26.
utils.py File 33240 bytes November 13 2023 21:40:26.

Reading File: //opt/alt/python38/lib//python3.8/site-packages/pip/_vendor/requests/hooks.py

"""
requests.hooks
~~~~~~~~~~~~~~

This module provides the capabilities for the Requests hooks system.

Available hooks:

``response``:
    The response generated from a Request.
"""
HOOKS = ["response"]


def default_hooks():
    return {event: [] for event in HOOKS}


# TODO: response is the only one


def dispatch_hook(key, hooks, hook_data, **kwargs):
    """Dispatches a hook dictionary on a given piece of data."""
    hooks = hooks or {}
    hooks = hooks.get(key)
    if hooks:
        if hasattr(hooks, "__call__"):
            hooks = [hooks]
        for hook in hooks:
            _hook_data = hook(hook_data, **kwargs)
            if _hook_data is not None:
                hook_data = _hook_data
    return hook_data

SILENT KILLER Tool