Spring Webfilters and Kotlin Coroutines #29672
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
theme: kotlin
An issue related to Kotlin support
type: enhancement
A general enhancement
Milestone
Hello and thanks for the great work. I am heavily using Spring Boot Webflux together with Kotlin and Coroutines. I wanted to ask, if it is planned to introduce a Coroutine aware Webclient and a suspending Webfilter. So instead of using
override fun filter(exchange: ServerWebExchange, chain: GatewayFilterChain): Mono<Void>
to be able to use something like the following:
override suspend fun filter(exchange: ServerWebExchange, chain: GatewayFilterChain)
I think having to use Reactor in some places and Coroutines in others does not allow for a consistent coding patterns for Spring Boot Kotlin users.
The text was updated successfully, but these errors were encountered: