Skip to content

Chgen/view handle request context - #1321

Draft
lemito wants to merge 4 commits into
userver-framework:developfrom
lemito:chgen/view-handle-request-context
Draft

Chgen/view handle request context#1321
lemito wants to merge 4 commits into
userver-framework:developfrom
lemito:chgen/view-handle-request-context

Conversation

@lemito

@lemito lemito commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Add RequestContext for chaotic-openapi


Note: by creating a PR or an issue you automatically agree to the CLA. See CONTRIBUTING.md. Feel free to remove this note, the agreement holds.

lemito added 3 commits August 15, 2026 00:22
View::Handle now receives server::request::RequestContext as the third
parameter, giving handlers access to per-request data (e.g. user auth
info set by the auth middleware). The dispatcher falls back to the
legacy two-argument Handle via the ViewHasHandleWithContext concept, so
existing hand-written views keep working unchanged.
…e signature

Regenerate golden output with the three-argument Handle and migrate
hand-written views in integration tests and the chaotic_openapi_service
sample. The headersGet view demonstrates reading per-request context
data (x-user-id) set by an auth checker.
@lemito
lemito marked this pull request as draft August 14, 2026 21:58
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