Browse Source

Add since to WebClient.ResponseSpec.awaitBodyOrNull()

See gh-26755
pull/26758/head
Johnny Lim 4 years ago committed by Stephane Nicoll
parent
commit
aec151e014
  1. 1
      spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/client/WebClientExtensions.kt

1
spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/client/WebClientExtensions.kt

@ -148,6 +148,7 @@ suspend inline fun <reified T : Any> WebClient.ResponseSpec.awaitBody() : T = @@ -148,6 +148,7 @@ suspend inline fun <reified T : Any> WebClient.ResponseSpec.awaitBody() : T =
* Coroutines variant of [WebClient.ResponseSpec.bodyToMono].
*
* @author Valentin Shakhov
* @since 5.3.6
*/
suspend inline fun <reified T : Any> WebClient.ResponseSpec.awaitBodyOrNull() : T? =
when (T::class) {

Loading…
Cancel
Save