Package-level declarations
Properties
Functions
Shortcut to create an argument of the given type
Shortcut to create an argument of a list the given type
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 a list of the specified type. Allowing for client.exchangeList<Hero>(HttpRequest.GET("/heroes/any"))
instead of client.exchange(HttpRequest.GET<Any>("/heroes/any"), Argument.listOf(Hero::class.java))
.
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))
.
Retrieve the body of the message as an object of the given type. Allowing to write message.getBodyObject<Foo>()
instead of message.getBody(Argument.of(Foo::class.java)).getOrNull()
or message.getBody(Foo::class.java)).getOrNull()
.
Perform an HTTP request for the given request object emitting the full HTTP response from returned Publisher and converting the response body to a list of the specified type. Allows for client.retrieveList<Hero>(HttpRequest.GET("/heroes/any"))
instead of client.retrieve(HttpRequest.GET<Any>("/heroes/any"), Argument.listOf(Hero::class.java))
.
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))
.