spring-framework
5.3.39

# awaitBody

inline suspend fun <T : Any> ServerRequest.awaitBody(): T
Content copied to clipboard

Non-nullable Coroutines variant of ServerRequest.bodyToMono.

#### Author

Sebastien Deleuze

#### Since

5.2

suspend fun <T : Any> ServerRequest.awaitBody(clazz: KClass<T>): T
Content copied to clipboard

`KClass` non-nullable Coroutines variant of ServerRequest.bodyToMono. Please consider `awaitBody<Foo>` variant if possible.

#### Author

Igor Manushin

#### Since

5.3