Skip to content

Commit

Permalink
add line about stacking handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
tipsy committed Jun 20, 2023
1 parent 93696a5 commit 38012b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ The before-, endpoint- and after-handlers require three parts:
The `Handler` interface has a void return type. You use a method like `ctx.result(result)`,
`ctx.json(obj)`, or `ctx.future(future)` to set the response which will be returned to the user.

If you add multiple before/after handlers for the same path, they will be executed in the order they were added.
This can be useful for adding authentication, caching, logging, etc.

You can learn about how Javalin handles concurrency in [FAQ - Concurrency](#concurrency).

### Before handlers
Expand Down

0 comments on commit 38012b6

Please sign in to comment.