spring-framework
5.3.39

# awaitBodyOrNull

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

Nullable Coroutines variant of ServerRequest.bodyToMono.

#### Author

Sebastien Deleuze

#### Since

5.2

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

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

#### Author

Igor Manushin

#### Since

5.3