exchangeObject
Perform an HTTP request for the given request object emitting the full HTTP response from returned org.reactivestreams.Publisher and converting the response body to the specified type. Allowing for client.exchangeObject<Hero>(HttpRequest.GET("/heroes/any"))
instead of client.exchange(HttpRequest.GET<Any>("/heroes/any"), Argument.of(Hero::class.java))
.
Return
The full HttpResponse with response body as an instance of T
Parameters
T
The response body type
request
The HttpRequest you want to perform