Initial documentation for new HandlerWrapper API in Javalin 7#308
Merged
tipsy merged 2 commits intojavalin:masterfrom Feb 22, 2026
Merged
Initial documentation for new HandlerWrapper API in Javalin 7#308tipsy merged 2 commits intojavalin:masterfrom
HandlerWrapper API in Javalin 7#308tipsy merged 2 commits intojavalin:masterfrom
Conversation
🗑 Deploy Preview for javalin.io deleted.
|
There was a problem hiding this comment.
Pull request overview
This PR adds initial documentation for the new HandlerWrapper API introduced in Javalin 7. The feature addresses issue #2528 and relates to PR #2516, providing a way to wrap request handlers for use cases like propagating ThreadLocal or ScopedValue contexts.
Changes:
- Adds a new "Wrapper handlers" subsection to the documentation explaining that wrapper handlers run "around" requests
- Includes Java and Kotlin code examples demonstrating the
app.router.handlerWrapper()API with ScopedValue usage
Contributor
Author
|
@tipsy do you want me to amend this with additional changes to implement Copilot's suggestions? Thought I'd ask, first. |
Member
|
@vorburger I think Copilot went a little hard there, I'll merge your PR as is and make a few small adjustments to it :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes https://github.com/javalin/javalin/issues/2528.
Re. javalin/javalin#2516.
@tipsy how about this, at least as a start? (You could always edit it further after you merge it as-is.)