Skip to content

feat: propagate hook context and add completion stage - #127

Merged
m-t-a97 merged 1 commit into
mainfrom
feat/router-hook-context-finalization
Oct 11, 2026
Merged

m-t-a97 merged 1 commit into
mainfrom
feat/router-hook-context-finalization

Conversation

@m-t-a97

@m-t-a97 m-t-a97 commented Oct 11, 2026

Copy link
Copy Markdown
Member

Make reqCtx.Request the source of truth so hook-injected context reaches route handlers.

Add a HookOnComplete stage that runs exactly once on every exit path, including early short-circuits, for finalization that must always run.

Expose the written HTTP status via models.ResponseStatusProvider and DeferredResponseWriter.StatusCode.

Make reqCtx.Request the source of truth so hook-injected context reaches route handlers.

Add a HookOnComplete stage that runs exactly once on every exit path,
including early short-circuits, for finalization that must always run.

Expose the written HTTP status via models.ResponseStatusProvider and
DeferredResponseWriter.StatusCode.
@m-t-a97 m-t-a97 self-assigned this Oct 11, 2026
@m-t-a97
m-t-a97 merged commit 3830679 into main Oct 11, 2026
6 checks passed
@m-t-a97
m-t-a97 deleted the feat/router-hook-context-finalization branch October 11, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant