We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6baf438 commit 2a27e6aCopy full SHA for 2a27e6a
docs/asciidoc/routing.adoc
@@ -467,7 +467,7 @@ interface Filter {
467
----
468
{
469
/** Kotlin uses implicit variables: `ctx` and `next` */
470
- filter {
+ use {
471
val start = System.currentTimeMillis() // <1>
472
473
val response = next.apply(ctx) // <2>
@@ -1014,14 +1014,14 @@ A `scoped filter` looks like:
1014
1015
1016
// Increment +1
1017
1018
val n = next.apply(ctx) as Int
1019
return 1 + n
1020
}
1021
1022
routes { // <1>
1023
// Multiply by 2
1024
1025
1026
2 * n
1027
0 commit comments