Skip to content

ccproxy.core.plugins.hooks.base

ccproxy.core.plugins.hooks.base

Core interfaces for the hook system.

HookContext dataclass

HookContext(
    event,
    timestamp,
    data,
    metadata,
    request=None,
    response=None,
    provider=None,
    plugin=None,
    error=None,
)

Context passed to all hooks

Hook

Bases: Protocol

Base hook protocol

name property

name

Hook name for debugging

events property

events

Events this hook listens to

priority property

priority

Hook execution priority (0-1000, lower executes first).

Default is 500 (middle priority) for backward compatibility. See HookLayer enum for standard priority values.