Skip to content

Commit

Permalink
Update migration-guide-5-6.md (javalin#255)
Browse files Browse the repository at this point in the history
Add information about  ctx.skipRemainingHandlers()
elwin013 authored Jan 4, 2024
1 parent 12ceba7 commit 9329de3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/docs/migration-guide-5-6.md
Original file line number Diff line number Diff line change
@@ -88,6 +88,9 @@ app.beforeMatched { ctx ->
{% endcapture %}
{% include macros/docsSnippet.html java=java kotlin=kotlin %}

If you are not using `UnauthorizedResponse` or any other `HttpResponseException` you shall stop
processing further handlers using `ctx.skipRemainingHandlers()` as a last step in the `beforeMatched`.

## Virtual threads are now opt-in
In Javalin 5, virtual threads were enabled by default. This was because virtual threads themselves
were opt-in, and we wanted to make it as easy as possible to try them out. Now that virtual threads

0 comments on commit 9329de3

Please sign in to comment.