spring-framework
5.3.39

# bodyToMono

inline fun <T : Any> ClientResponse.bodyToMono(): Mono<T>
Content copied to clipboard

Extension for ClientResponse.bodyToMono providing a `bodyToMono<Foo>()` variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.

#### Author

Sebastien Deleuze

#### Since

5.0

inline fun <T : Any> WebClient.ResponseSpec.bodyToMono(): Mono<T>
Content copied to clipboard

Extension for WebClient.ResponseSpec.bodyToMono providing a `bodyToMono<Foo>()` variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.

#### Author

Sebastien Deleuze

#### Since

5.0