Skip to content

Spring Webfilters and Kotlin Coroutines #29672

Closed
@akoufa

Description

@akoufa

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.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)theme: kotlinAn issue related to Kotlin supporttype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions