Package-level declarations

Types

Link copied to clipboard

Kotlin-specific implementation of the ExchangeFilterFunction interface that allows for using coroutines.

Link copied to clipboard

Kotlin-specific adaption of ExchangeFunction that allows for coroutines.

Functions

Link copied to clipboard
inline suspend fun <T : Any> ClientResponse.awaitBody(): T

Non-nullable Coroutines variant of ClientResponse.bodyToMono.

inline suspend fun <T : Any> WebClient.ResponseSpec.awaitBody(): T

Coroutines variant of WebClient.ResponseSpec.bodyToMono.

suspend fun <T : Any> ClientResponse.awaitBody(clazz: KClass<T>): T

KClass non-nullable coroutines variant of ClientResponse.bodyToMono. Please consider awaitBody<Foo> variant if possible.

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

Nullable coroutines variant of ClientResponse.bodyToMono.

inline suspend fun <T : Any> WebClient.ResponseSpec.awaitBodyOrNull(): T?

Coroutines variant of WebClient.ResponseSpec.bodyToMono.

suspend fun <T : Any> ClientResponse.awaitBodyOrNull(clazz: KClass<T>): T?

KClass nullable coroutines variant of ClientResponse.bodyToMono. Please consider awaitBodyOrNull<Foo> variant if possible.

Link copied to clipboard
inline suspend fun <T : Any> ClientResponse.awaitEntity(): ResponseEntity<T>

Coroutines variant of ClientResponse.toEntity.

suspend fun <T : Any> ClientResponse.awaitEntity(clazz: KClass<T>): ResponseEntity<T>

KClass coroutines variant of ClientResponse.toEntity. Please consider awaitEntity<Foo> variant if possible.

Link copied to clipboard

Coroutines variant of ClientResponse.toEntityList.

KClass coroutines variant of ClientResponse.toEntityList. Please consider awaitEntityList<Foo> variant if possible.

Link copied to clipboard
suspend fun <T : Any> WebClient.RequestHeadersSpec<out WebClient.RequestHeadersSpec<*>>.awaitExchangeOrNull(responseHandler: suspend (ClientResponse) -> T?): T?

Variant of WebClient.RequestHeadersSpec.awaitExchange that allows a nullable return

Link copied to clipboard

Extension for WebClient.RequestBodySpec.body providing a body(Publisher<T>) variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.

Extension for WebClient.RequestBodySpec.body providing a body<T>(Any) variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.

Extension for WebClient.RequestBodySpec.body providing a body(Flow<T>) variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.

Link copied to clipboard
inline fun <T : Any> ClientResponse.bodyToFlow(): Flow<T>

KClass coroutines kotlinx.coroutines.flow.Flow based variant of ClientResponse.bodyToFlux. Please consider bodyToFlow<Foo> variant if possible.

Link copied to clipboard
inline fun <T : Any> ClientResponse.bodyToFlux(): Flux<T>

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

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

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

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.

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.

Link copied to clipboard

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

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

Link copied to clipboard

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

Link copied to clipboard

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

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