The Kotlin code example at Filtering Handler Functions seems to be not equivalent to Java.
Suppose
The
beforefilter that adds a custom request header is only applied to the two GET routes. Theafterfilter that logs the response is applied to all routes, including the nested ones.
is correct, POST("/person", handler::createPerson) and after() should not be inside nest, if my understanding to RouterFunction is correct.
Comment From: sbrannen
This has been merged into main.
Thanks for submitting your first PR to the Spring Framework! 👍