retrieveObject
Perform an HTTP request for the given request object emitting the full HTTP response from returned Publisher and converting the response body to the specified type. Allows for client.retrieveObject<Hero>(HttpRequest.GET("/heroes/any"))
instead of client.retrieve(HttpRequest.GET<Any>("/heroes/any"), Argument.of(Hero::class.java))
.
Return
The response from the client as an instance of T
Author
Will Buck
Since
1.0.0
Parameters
T
The argument type
request
The HttpRequest you want to perform