Package org.springframework.web.reactive.function.client
Functions
awaitBodilessEntity
Link copied to clipboard
suspend fun WebClient.ResponseSpec.awaitBodilessEntity(): ResponseEntity<Void>
Content copied to clipboard
Coroutines variant of WebClient.ResponseSpec.toBodilessEntity.
awaitBody
Link copied to clipboard
awaitBodyOrNull
Link copied to clipboard
inline suspend fun <T : Any> WebClient.ResponseSpec.awaitBodyOrNull(): T?
Content copied to clipboard
Coroutines variant of WebClient.ResponseSpec.bodyToMono.
suspend fun <T : Any> ClientResponse.awaitBodyOrNull(clazz: KClass<T>): T?
Content copied to clipboard
awaitEntity
Link copied to clipboard
inline suspend fun <T : Any> ClientResponse.awaitEntity(): ResponseEntity<T>
Content copied to clipboard
Coroutines variant of ClientResponse.toEntity.
suspend fun <T : Any> ClientResponse.awaitEntity(clazz: KClass<T>): ResponseEntity<T>
Content copied to clipboard
awaitEntityList
Link copied to clipboard
inline suspend fun <T : Any> ClientResponse.awaitEntityList(): ResponseEntity<List<T>>
Content copied to clipboard
Coroutines variant of ClientResponse.toEntityList.
suspend fun <T : Any> ClientResponse.awaitEntityList(clazz: KClass<T>): ResponseEntity<List<T>>
Content copied to clipboard
awaitExchange
Link copied to clipboard
suspend fun WebClient.RequestHeadersSpec<out WebClient.RequestHeadersSpec<*>>.awaitExchange(): ClientResponse
Content copied to clipboard
Coroutines variant of WebClient.RequestHeadersSpec.exchange.
suspend fun <T : Any> WebClient.RequestHeadersSpec<out WebClient.RequestHeadersSpec<*>>.awaitExchange(responseHandler: suspend (ClientResponse) -> T): T
Content copied to clipboard
Coroutines variant of WebClient.RequestHeadersSpec.exchangeToMono.
awaitExchangeOrNull
Link copied to clipboard
suspend fun <T : Any> WebClient.RequestHeadersSpec<out WebClient.RequestHeadersSpec<*>>.awaitExchangeOrNull(responseHandler: suspend (ClientResponse) -> T?): T?
Content copied to clipboard
Variant of WebClient.RequestHeadersSpec.awaitExchange that allows a nullable return
body
Link copied to clipboard
inline fun <T : Any, S : Publisher<T>> WebClient.RequestBodySpec.body(publisher: S): WebClient.RequestHeadersSpec<*>
Content copied to clipboard
Extension for WebClient.RequestBodySpec.body providing a
body(Publisher<T>)
variant leveraging Kotlin reified type parameters.inline fun <T : Any> WebClient.RequestBodySpec.body(producer: Any): WebClient.RequestHeadersSpec<*>
Content copied to clipboard
Extension for WebClient.RequestBodySpec.body providing a
body<T>(Any)
variant leveraging Kotlin reified type parameters.inline fun <T : Any> WebClient.RequestBodySpec.body(flow: Flow<T>): WebClient.RequestHeadersSpec<*>
Content copied to clipboard
Extension for WebClient.RequestBodySpec.body providing a
body(Flow<T>)
variant leveraging Kotlin reified type parameters.bodyToFlow
Link copied to clipboard
bodyToFlux
Link copied to clipboard
Extension for ClientResponse.bodyToFlux providing a
bodyToFlux<Foo>()
variant leveraging Kotlin reified type parameters.Extension for WebClient.ResponseSpec.bodyToFlux providing a
bodyToFlux<Foo>()
variant leveraging Kotlin reified type parameters.bodyToMono
Link copied to clipboard
Extension for ClientResponse.bodyToMono providing a
bodyToMono<Foo>()
variant leveraging Kotlin reified type parameters.Extension for WebClient.ResponseSpec.bodyToMono providing a
bodyToMono<Foo>()
variant leveraging Kotlin reified type parameters.createExceptionAndAwait
Link copied to clipboard
suspend fun ClientResponse.createExceptionAndAwait(): WebClientResponseException
Content copied to clipboard
Coroutines variant of ClientResponse.createException.
exchangeToFlow
Link copied to clipboard
fun <T : Any> WebClient.RequestHeadersSpec<out WebClient.RequestHeadersSpec<*>>.exchangeToFlow(responseHandler: (ClientResponse) -> Flow<T>): Flow<T>
Content copied to clipboard
Coroutines variant of WebClient.RequestHeadersSpec.exchangeToFlux.
toEntity
Link copied to clipboard
Extension for ClientResponse.toEntity providing a
toEntity<Foo>()
variant leveraging Kotlin reified type parameters.inline fun <T : Any> WebClient.ResponseSpec.toEntity(): Mono<ResponseEntity<T>>
Content copied to clipboard
Extension for WebClient.ResponseSpec.toEntity providing a
toEntity<Foo>()
variant leveraging Kotlin reified type parameters.toEntityFlux
Link copied to clipboard
inline fun <T : Any> WebClient.ResponseSpec.toEntityFlux(): Mono<ResponseEntity<Flux<T>>>
Content copied to clipboard
Extension for WebClient.ResponseSpec.toEntityFlux providing a
toEntityFlux<Foo>()
variant leveraging Kotlin reified type parameters.toEntityList
Link copied to clipboard
inline fun <T : Any> ClientResponse.toEntityList(): Mono<ResponseEntity<List<T>>>
Content copied to clipboard
Extension for ClientResponse.toEntityList providing a
bodyToEntityList<Foo>()
variant leveraging Kotlin reified type parameters.inline fun <T : Any> WebClient.ResponseSpec.toEntityList(): Mono<ResponseEntity<List<T>>>
Content copied to clipboard
Extension for WebClient.ResponseSpec.toEntityList providing a
toEntityList<Foo>()
variant leveraging Kotlin reified type parameters.