mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-14 19:22:32 +03:00
Adds an optional `headers` field to `PluginContext` so plugin hooks can read request-scoped HTTP headers (trace ids, correlation ids, session markers) sent by the client. The `clientRawRequest.headers` value is plumbed through both `runPluginOnRequestHook` and `runPluginOnResponseHook` at the 3 call sites in `handleChatCore()`. Test cases included: - headers passed to the hook are visible in PluginContext - no headers arg is backward compatible (undefined in ctx)