Registers a hook function into a named slot. Called by serve() after
middleware discovery and deduplication. Hooks are stored in insertion order
(serve() inserts them in ClassFactory registration order -- MJ first,
then middle-layer, then app).
This is intentionally simple -- no priority logic, no namespace logic.
All that intelligence lives in serve() where middleware is discovered
via ClassFactory.
Registers a hook function into a named slot. Called by serve() after middleware discovery and deduplication. Hooks are stored in insertion order (serve() inserts them in ClassFactory registration order -- MJ first, then middle-layer, then app).
This is intentionally simple -- no priority logic, no namespace logic. All that intelligence lives in serve() where middleware is discovered via ClassFactory.