The Adding a Custom Filter section of the servlet architecture reference only demonstrates addFilterAfter; it would be nice if it demonstrated addFilterBefore as well.
More specifically, though, the Kotlin snippets would be more helpful if they demonstrated idiomatic Kotlin using reified type parameters (e.g., addFilterBefore<LogoutFilter>(TenantFilter())). That is, for the addFilterAfter documentation, something like:
http {
addFilterAfter<AnonymousAuthenticationFilter>(TenantFilter())
}
When updating these snippets, please move the snippet into docs/src/test/java and use include:: syntax to include the snippet instead of including them inline.
Related to #17993
The Adding a Custom Filter section of the servlet architecture reference only demonstrates
addFilterAfter; it would be nice if it demonstratedaddFilterBeforeas well.More specifically, though, the Kotlin snippets would be more helpful if they demonstrated idiomatic Kotlin using reified type parameters (e.g.,
addFilterBefore<LogoutFilter>(TenantFilter())). That is, for theaddFilterAfterdocumentation, something like:http { addFilterAfter<AnonymousAuthenticationFilter>(TenantFilter()) }When updating these snippets, please move the snippet into
docs/src/test/javaand useinclude::syntax to include the snippet instead of including them inline.Related to #17993