bodyValueWithType
inline fun <T : Any> WebClient.RequestBodySpec.bodyValueWithType(body: T): WebClient.RequestHeadersSpec<*>
Extension for WebClient.RequestBodySpec.bodyValue providing a bodyValueWithType<T>(Any)
variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.
Author
Sebastien Deleuze
Since
6.2
Parameters
body
the value to write to the request body
T
the type of the body